TSQLQUERY : automatically generated update,insert delete statement

The offical for ZeosLib 7.3 Report problems, ask for help, post proposals for the new version of Zeoslib 7.3/v8
Quick Info:
-We made two new drivers: odbc(raw and unicode version) and oledb
-GUID domain/field-defined support for FB
-extended error infos of Firebird
-performance ups are still in queue
In future some more feature will arrive, so stay tuned and don't hassitate to help
Post Reply
k1attila12
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 26.03.2018, 10:50

TSQLQUERY : automatically generated update,insert delete statement

Post by k1attila12 »

Hi

ZQuery can auto generate UPDATE,INSERT, DELETE staement from SELECT statement (ZQuery). It is OK.

But I don't think it takes into account the field -> providerflag -> pfInkey,pfInWhere,pfInUpdate property.

Always doing the same thing.

Thanks Attila
marsupilami
Platinum Boarder
Platinum Boarder
Posts: 1956
Joined: 17.01.2011, 14:17

Re: TSQLQUERY : automatically generated update,insert delete statement

Post by marsupilami »

Hello Attila,

as far as documentation goes, Zeos doesn't use pfInKey. As for pfInUpdate and pfInWhere this is what the documentation says:
Fields that don’t have the pfInUpdate flag set will not get updated by Zeos.
Fields that don’t have the pfInWhere flag set will not get used for constructing the where clause of an DML statement.
Do you think Zeos should behave differently? Or do you think, Zeos doesn't behave as documented?

Best regards,

Jan
k1attila12
Fresh Boarder
Fresh Boarder
Posts: 8
Joined: 26.03.2018, 10:50

Re: TSQLQUERY : automatically generated update,insert delete statement

Post by k1attila12 »

Hi, Jan

It should work as you say in the documentation, but it use all fields all the time (in update and in where).


How do you set ZQuery ?

UpdateMode = ? (My setting : umUpdateAll)
WhereMode = ? (My setting = wmWhereAll)

thank you
Attila
Post Reply