[libgda] GdaServerOperation: bug fixed
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Subject: [libgda] GdaServerOperation: bug fixed
- Date: Tue, 28 Jul 2009 18:49:16 +0000 (UTC)
commit 6f1f10f37382e619e9144187d1f37939ddc9766e
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 d148ea8..1e59c9b 100644
--- a/libgda/gda-server-operation.c
+++ b/libgda/gda-server-operation.c
@@ -2016,7 +2016,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);
@@ -2032,7 +2032,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]