There is a problem generating applications where the database is SqlServer.
In the specific case when a table contains a field named “DATA”, the generated code contains an error because the sql field is considered as a string value and value added to each statement as “DATA”.
For example when I insert a record I get this result that generate a syntax error
[INDENT]INSERT INTO TABLETEST (descriprion, info, “data”) VALUES (‘Test case’, ‘bla bla bla’, ‘2013-04-24 00:00:00:000’)[/INDENT]
This happens only with SqlServer and as a workaround I created a database replication in MySQL. When the application has been generated using the MySql connection then i change the connection and also works in SqlServer.
I work with a database with more than 500 tables with frequent structure updates and this is really boring.
A test case is easily accomplished. Just create a table in SqlServer with this structure and generate an application, grid or form it’s the same
[I][INDENT]CREATE TABLE [dbo]. [TABLETEST] (
[id] [int] IDENTITY (1,1) NOT NULL,
[descriprion] [nvarchar] (50) NULL,
[info] [nvarchar] (50) NULL,
[date] [datetime] NULL,
- CONSTRAINT [PK_TABLETEST] PRIMARY KEY CLUSTERED
(
[id] ASC
) WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF = ON ALLOW_ROW_LOCKS, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY][/INDENT][/I]
We are developing with version 7.0.009 but the probleme is present since version 6.0.039 (Ticket 18097-3030110837)
I would be very grateful to anyone who wants to consider this case.
Giorgio