At the beginning - this is my first post on this forum, great job providing the alternative way to ODBC/BDE !
I would like to ask how to specify which field would be a key field in WHERE clause of UPDATE query which is send automagically on <obj> . Post; proc ?
I'm trying to use Delphi7 and Zeos 6.5.1a.
My investigations began when I had to post some updates to table with float fields and only some of them (updates) arrived to the destination.
The query sent by the Zeos to MySQL 5 was :
Code: Select all
UPDATE ... SET fKMOG=1492,fKMMIA=1492,fZRP1=766,fZNP1=643.8,fZNP3=22.98,fCPOG=94.0083333333333,fCPEF=94.0083333333333 WHERE NAZWISKO='...' AND sSKIER=1002 AND fKMOG=1367 AND fKMJAZ=0 AND fKMMIA=1367 AND fKMPRZY=0 AND fKMMIAPR=0 AND fZRP1=702 AND fZNP1=589.8 AND fZRP2=0 AND fZNP2=0 AND fZRP3=0 AND fZNP3=21.06 AND fCPOG=86.0083333333333 AND fCPEF=86.0083333333333 AND fCPPR=0
The problem is, that there are float fields in WHERE clause which confuses database in comparision.
So the question is how to switch off that float fields from WHERE clause ?
There is a ProviderFlags property of each TField in Delphi, but I couldn't get it to work properly - it had no effect in queries.
Thanks in advance for replying...
btw: sorry for my english