[libgda/LIBGDA_4.0] GdaServerOperation: bug fixed
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Subject: [libgda/LIBGDA_4.0] GdaServerOperation: bug fixed
- Date: Tue, 28 Jul 2009 18:45:05 +0000 (UTC)
commit 77fd2258234d5cac3b636a7224d5c86ff710103a
Author: Vivien Malerba <malerba gnome-db org>
Date: Tue Jul 28 18:38:29 2009 +0200
GdaServerOperation: bug fixed
libgda/gda-server-operation.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-server-operation.c b/libgda/gda-server-operation.c
index fae1541..6103bc0 100644
--- a/libgda/gda-server-operation.c
+++ b/libgda/gda-server-operation.c
@@ -2012,7 +2012,7 @@ gda_server_operation_get_sql_identifier_at (GdaServerOperation *op, GdaConnectio
const GValue *value = NULL;
gchar *path;
va_list args;
- GdaConnectionOptions cncoptions;
+ GdaConnectionOptions cncoptions = 0;
g_return_val_if_fail (GDA_IS_SERVER_OPERATION (op), NULL);
@@ -2028,7 +2028,8 @@ gda_server_operation_get_sql_identifier_at (GdaServerOperation *op, GdaConnectio
return NULL;
g_return_val_if_fail (G_VALUE_TYPE (value) == G_TYPE_STRING, NULL);
- g_object_get (G_OBJECT (cnc), "options", &cncoptions, NULL);
+ if (cnc)
+ g_object_get (G_OBJECT (cnc), "options", &cncoptions, NULL);
return gda_sql_identifier_quote (g_value_get_string (value), cnc, prov, FALSE,
cncoptions & GDA_CONNECTION_OPTIONS_SQL_IDENTIFIERS_CASE_SENSITIVE);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]