TZUpdateSQL do not use my quoted SQL String
Posted: 13.10.2010, 15:05
Hello, I need your help, please
I have insert this InserSQL:
[font=Courier New]
INSERT INTO `projektpos`
(`ID`, `Projekt_ID`, `Bauteil_ID`, `BauteilLager_ID`, `Bezeichnung`,
`Bemerkung`, `Symbol`, `Wert`, `Case`, `Menge`, `Kennz`, `Variante`,
`PosX`, `PosY`, `Top`, `SMD`, `AendDatum`)
VALUES
(:ID, :Projekt_ID, :Bauteil_ID, :BauteilLager_ID, :Bezeichnung,
:Bemerkung,
:Symbol, :Wert, :Case, :Menge, :Kennz, :Variante, :PosX, :PosY, :Top,
:SMD, :AendDatum)[/font]
When the Dataset is posting, then comes this Error:
[font=Courier New]SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Case, Menge, Kennz, Variante, PosX, PosY, Top, SMD, AendDatum) VALUES (6, NULL, ' at line 1[/font]
The problem:
I have a column with the name "CASE". And the SQL must be quoted. Without this character it does not work.
Can you help me, please?
I need a Update Object, then the table is with Joins.
Or what can I do else?
I have looking in the code, but I have not find out where is the mistake.
Best regards Markus.
I have insert this InserSQL:
[font=Courier New]
INSERT INTO `projektpos`
(`ID`, `Projekt_ID`, `Bauteil_ID`, `BauteilLager_ID`, `Bezeichnung`,
`Bemerkung`, `Symbol`, `Wert`, `Case`, `Menge`, `Kennz`, `Variante`,
`PosX`, `PosY`, `Top`, `SMD`, `AendDatum`)
VALUES
(:ID, :Projekt_ID, :Bauteil_ID, :BauteilLager_ID, :Bezeichnung,
:Bemerkung,
:Symbol, :Wert, :Case, :Menge, :Kennz, :Variante, :PosX, :PosY, :Top,
:SMD, :AendDatum)[/font]
When the Dataset is posting, then comes this Error:
[font=Courier New]SQL Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Case, Menge, Kennz, Variante, PosX, PosY, Top, SMD, AendDatum) VALUES (6, NULL, ' at line 1[/font]
The problem:
I have a column with the name "CASE". And the SQL must be quoted. Without this character it does not work.
Can you help me, please?
I need a Update Object, then the table is with Joins.
Or what can I do else?
I have looking in the code, but I have not find out where is the mistake.
Best regards Markus.