Re: [gnome-db] libgda escape_value() and schema retreival
- From: "Murray Cumming" <murrayc murrayc com>
- To: "Rodrigo Moya" <rodrigo gnome-db org>
- Cc: GDA <gnome-db-list gnome org>
- Subject: Re: [gnome-db] libgda escape_value() and schema retreival
- Date: Tue, 17 Aug 2004 11:43:52 +0200 (CEST)
This seems to add a function like this:
gboolean
gda_connection_escape_string (GdaConnection *cnc,
gchar *from,
const gchar *to,
unsigned long length)
So,
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
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]