Need help: TUniQuery descendand and "AutoUpdate" function
Posted: Mon 29 Sep 2014 12:56
Hi, I am just trying to move my programs from ODAC to UniDAC. I am used to write Oracle SQL's and there are some "special" SQL statements which differ from database to database. So I want to use a TUniQuery descendant where before every OPEN or EXECSQL command the SQL statement is "parsed" for use with the actual provider (with "Oracle" SQL as base statment ... f.e. the Oracle "NVL" (null value) has to be translated to "COALESCE" for MySQL).
How can I implement my own "Oracle SQL to other SQL" converter in the TUniQuery (or better TUniConnection?) Should I overwrite the "BeforeOpen" and "BeforeExecute" Events? (How?
Hope you understand what I mean ... thx in advance!
How can I implement my own "Oracle SQL to other SQL" converter in the TUniQuery (or better TUniConnection?) Should I overwrite the "BeforeOpen" and "BeforeExecute" Events? (How?
Hope you understand what I mean ... thx in advance!