Generate SQL

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
wesleytorres
Posts: 3
Joined: Mon 19 May 2008 11:01

Generate SQL

Post by wesleytorres » Fri 06 Jun 2008 01:54

After write the sql sentence, I go in tab SQL generator and click in Generate SQL. The updateSQL , deleteSQL receive the code below:

******************
UPDATE tbl_geral_combustiveis
SET
CODIGO = :CODIGO, DT_SISTEMA = :DT_SISTEMA, HR_SISTEMA = :HR_SISTEMA, OPERADORID = :OPERADORID, NOME = :NOME
WHERE
CODIGO IS NULL
**********************
DELETE FROM tbl_geral_combustiveis
WHERE
CODIGO IS NULL

*******************************


Look.. the where clause codigo is null.. Why?


tanks !

MySQL server version: 5.1.22-rc-community
MySQL client version: Direct
MyDAC 5.50.0.34
Delphi 2007 build 11.0.2804.9245

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Fri 06 Jun 2008 14:58

Thank you for information. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.

Post Reply