After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 103230 - New functions to escape/unescape binary data
New functions to escape/unescape binary data
Status: RESOLVED INCOMPLETE
Product: libgda
Classification: Other
Component: general
unspecified
Other other
: Normal enhancement
: GNOME-DB-1-0
Assigned To: malerba
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-01-12 23:42 UTC by Gonzalo Paniagua Javier
Modified: 2009-01-28 08:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gonzalo Paniagua Javier 2003-01-12 23:42:58 UTC
We should provide a couple of functions that escape/unescape binary data for
inclusion in values of queries.

All providers that need escaping should implement them.
Comment 1 malerba 2005-09-15 11:56:24 UTC
There is the gda_connection_value_to_sql_string() function which converts any
GdaValue to a valid SQL string, which fills the purpose of encoding binary data.
As for data decoding, it is automatically done when retreiving GdaBinary values.

However I think there could be a nice improvement by creating an extra function
which does just the opposite of the gda_connection_value_to_sql_string()
function: take a SQL string as input and output a new GdaValue (the good point
would be that the GdaValue type is determined by the string only).

That would really be a nice thing to have for libgnomedb. What do you think?
Comment 2 Murray Cumming 2006-05-08 09:13:30 UTC
What would be the point of sql_string_to_value()? When would anybody need to use it?
Comment 3 malerba 2009-01-28 08:41:55 UTC
Closing the bug. Feel free to reopen it if needed.