[libgda/LIBGDA_4.0] Don't quote the '*' in gda_sql_identifier_quote()
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libgda/LIBGDA_4.0] Don't quote the '*' in gda_sql_identifier_quote()
- Date: Mon, 19 Oct 2009 18:40:57 +0000 (UTC)
commit 70f12c42832170e00dde2aff531a016f1c4507ed
Author: Vivien Malerba <malerba gnome-db org>
Date: Mon Oct 12 19:35:20 2009 +0200
Don't quote the '*' in gda_sql_identifier_quote()
libgda/gda-util.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/libgda/gda-util.c b/libgda/gda-util.c
index 1bc2414..0c617a2 100644
--- a/libgda/gda-util.c
+++ b/libgda/gda-util.c
@@ -1822,6 +1822,9 @@ gda_sql_identifier_quote (const gchar *id, GdaConnection *cnc, GdaServerProvider
prov = gda_connection_get_provider (cnc);
}
+ if ((*id == '*') && (! id [1]))
+ return g_strdup (id);
+
if (prov && PROV_CLASS (prov)->identifier_quote)
return PROV_CLASS (prov)->identifier_quote (prov, cnc, id,
for_meta_store, force_quotes);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]