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
TSQLQUERY : automatically generated update,insert delete statement
-
- Fresh Boarder
- Posts: 8
- Joined: 26.03.2018, 10:50
-
- Platinum Boarder
- Posts: 1956
- Joined: 17.01.2011, 14:17
Re: TSQLQUERY : automatically generated update,insert delete statement
Hello Attila,
as far as documentation goes, Zeos doesn't use pfInKey. As for pfInUpdate and pfInWhere this is what the documentation says:
Best regards,
Jan
as far as documentation goes, Zeos doesn't use pfInKey. As for pfInUpdate and pfInWhere this is what the documentation says:
Do you think Zeos should behave differently? Or do you think, Zeos doesn't behave as documented?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.
Best regards,
Jan
-
- Fresh Boarder
- Posts: 8
- Joined: 26.03.2018, 10:50
Re: TSQLQUERY : automatically generated update,insert delete statement
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
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