Re: [gnome-db] libgda escape_value() and schema retreival

This seems to add a function like this:

gda_connection_escape_string (GdaConnection *cnc,
			      gchar *from,
			      const gchar *to,
			      unsigned long length)


1. Why do we need to provide the length of the "from" string? Surely, all
strings in libgda are null-terminated?

2. It seems to convert from "to" to "from". Isn't that a bit backwards?

3. Is this just for creating SQL-representations of text values? Surely
it's more useful to have a funciton to create a SQL representation of a
GValue, whatever type that GValue has.

4. Does this add the quotes, or do you need a big switch/case (switching
on the field type) block in the app for that?

Murray Cumming
murrayc murrayc com

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]