GNOME Bugzilla – Bug 160846
consider replacing escape_string with an exposed gda_*_value_to_sql_string
Last modified: 2005-03-28 10:56:13 UTC
looking at the backend code, it would be better to add the escape string code into the gda_mysql_value_to_sql_string, and add this prototype to the Connection object. char * gda_connection_to_sql_string(GdaConnection *connection, GdaValue *value) hence fixing the escaping of to_sql_string and removing the unnessary escape_string, in one blow..
Concept patch here - replaces the escape_string code currently there, and merges existing to_string code, making queries quote safe. http://devel.akbkhome.com/svn/index.php/libgda/value_to_sql_string.concept.txt - (This is not a working patch - memory alloc / freeing and testing need doing, + impelementations for other drivers.) Feedback welcome.