Automatic Generation of SQL
Automatic Generation of SQL
I have worked with a previous version of ODAC, now in ODAC 6, ODAC components automatically generate Insert, Update, Delete and Refresh if they doesn't exist.
But I want compatibility with previous version else i would have to change all forms. Colud I do?
thanks in advance, Jose Maria.
PD: Previous TOraQuery if insert, update or delete commands are not specified the data is readonly.
But I want compatibility with previous version else i would have to change all forms. Colud I do?
thanks in advance, Jose Maria.
PD: Previous TOraQuery if insert, update or delete commands are not specified the data is readonly.
Hi Folks,
In playing around with this it appears that setting OraQueryCompatibilityMode to true also affects TSmartQuery components as well (making them not autogenerate SQL which they used to do.) Things have changed a bit with version 6, but my understanding (or usage in the past) was:
TOraQuery: Used for read only queries unless you explicitly fill the editing SQL properties.
TSmartQuery: Used for editable queries where the editing SQL is automatically generated.
I'd rather not have TOraQuery generating editable queries automatically, but I'd like the TSmartQuery to do so. If I set the ReadOnly property of TOraQueries to true, will this also stop TOraQuery from doing anything extra (like generating the SQL statements for editing)?
Thanks,
-Mark
In playing around with this it appears that setting OraQueryCompatibilityMode to true also affects TSmartQuery components as well (making them not autogenerate SQL which they used to do.) Things have changed a bit with version 6, but my understanding (or usage in the past) was:
TOraQuery: Used for read only queries unless you explicitly fill the editing SQL properties.
TSmartQuery: Used for editable queries where the editing SQL is automatically generated.
I'd rather not have TOraQuery generating editable queries automatically, but I'd like the TSmartQuery to do so. If I set the ReadOnly property of TOraQueries to true, will this also stop TOraQuery from doing anything extra (like generating the SQL statements for editing)?
Thanks,
-Mark