[gnome-db] gda_connection_statement_to_sql() without a connection

Murray Cumming <[email protected]>
Newsgroups gmane.comp.gnome.db
Message-ID <1320833162.2277.22.camel@murrayc-desktop>
In libglom, I'm using 
gda_connection_statement_to_sql()
http://developer.gnome.org/libgda/unstable/GdaConnection.html#gda-connection-statement-to-sql
to generate a SQL statement that's appropriate for the particular
backend (PostgreSQL mostly), with the correct quoting (because I use
GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE when opening the
connection).

However, I don't always want an actual connection, because OnlineGlom
then uses that SQL string with its own JDBC Java API.

So is there any easy way to get that SQL string without actually
connecting to the server? gda_statement_to_sql() seems to ignore the
connection and the quoting for case-sensitivity.
http://developer.gnome.org/libgda/unstable/GdaStatement.html#gda-statement-to-sql
 

-- 
[email protected]
www.murrayc.com
www.openismus.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.