[libgda] SQLite: crasher correction in meta data retreival
- From: Vivien Malerba <vivien src gnome org>
- To: svn-commits-list gnome org
- Subject: [libgda] SQLite: crasher correction in meta data retreival
- Date: Mon, 27 Jul 2009 19:59:08 +0000 (UTC)
commit af428406b96a102feae032a9e58e34a0bd2ccead
Author: Vivien Malerba <malerba gnome-db org>
Date: Mon Jul 27 19:37:11 2009 +0200
SQLite: crasher correction in meta data retreival
libgda/sqlite/gda-sqlite-meta.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/libgda/sqlite/gda-sqlite-meta.c b/libgda/sqlite/gda-sqlite-meta.c
index 7dbcba8..bf8310f 100644
--- a/libgda/sqlite/gda-sqlite-meta.c
+++ b/libgda/sqlite/gda-sqlite-meta.c
@@ -1008,8 +1008,11 @@ fill_columns_model (GdaConnection *cnc, SqliteConnectionData *cdata,
v1 = gda_value_copy (cvalue);
g_value_set_string ((v2 = gda_value_new (G_TYPE_STRING)), pzDataType);
g_value_set_boolean ((v3 = gda_value_new (G_TYPE_BOOLEAN)), pNotNull ? FALSE : TRUE);
- g_value_take_string ((v4 = gda_value_new (G_TYPE_STRING)),
- to_caseless_string (g_strdup (pzCollSeq)));
+ if (pzCollSeq)
+ g_value_take_string ((v4 = gda_value_new (G_TYPE_STRING)),
+ to_caseless_string (g_strdup (pzCollSeq)));
+ else
+ v4 = NULL;
if (pAutoinc)
g_value_set_string ((v5 = gda_value_new (G_TYPE_STRING)), GDA_EXTRA_AUTO_INCREMENT);
g_value_set_int (v1, g_value_get_int (v1) + 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]