[libgda] Have a uniform default for "not null" specifications
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Have a uniform default for "not null" specifications
- Date: Sun, 23 Aug 2015 12:43:43 +0000 (UTC)
commit b844f1a2ec3bdd0f16b5cc4eae8059559f55e1c8
Author: Vivien Malerba <malerba gnome-db org>
Date: Sun Aug 23 14:32:08 2015 +0200
Have a uniform default for "not null" specifications
libgda/gda-data-model-import.c | 2 +-
libgda/gda-util.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-data-model-import.c b/libgda/gda-data-model-import.c
index 6615b90..f742c86 100644
--- a/libgda/gda-data-model-import.c
+++ b/libgda/gda-data-model-import.c
@@ -1656,7 +1656,7 @@ init_node_import (GdaDataModelImport *model)
xmlFree (str);
}
str = (gchar*)xmlGetProp (cur, (xmlChar*)"nullok");
- spec->nullok = TRUE;
+ spec->nullok = FALSE;
if (str) {
spec->nullok = ((*str == 't') || (*str == 'T')) ? TRUE : FALSE;
xmlFree (str);
diff --git a/libgda/gda-util.c b/libgda/gda-util.c
index f75fdec..352cf96 100644
--- a/libgda/gda-util.c
+++ b/libgda/gda-util.c
@@ -654,7 +654,7 @@ gda_utility_holder_load_attributes (GdaHolder *holder, xmlNodePtr node, GSList *
xmlFree (str);
}
else
- gda_holder_set_not_null (holder, FALSE);
+ gda_holder_set_not_null (holder, TRUE);
str = xmlGetProp (node, BAD_CAST "plugin");
if (str) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]