GNOME Bugzilla – Bug 572220
gda_data_handler_get_sql_from_value() is unclear about quoting.
Last modified: 2009-02-21 15:01:46 UTC
The documentation for gda_data_handler_get_sql_from_value() is unclear about whether the returned string will have the appropriate quoting for that column type, for that backend. For instance, will it add '' quotes around values if the GValue is text, but no quotes if it is a number? If this function adds no quotes, is there a function that does add quotes? http://library.gnome.org/devel/libgda/unstable/libgda-40-Default-Data-handlers.html#gda-data-handler-get-sql-from-value By the way, where that documentation says "the returned string is NULL", it maybe means "the returned string is "NULL".
In fact, it does seem to add the necessary quotes.
In SVn trunk rev #3325: - doc has been updated - code has been modified to make sure the returned value is coherent in all the implementations of the GdaDataHandler interface.