[libgda: 2/3] DDL: Adding missing parsing code
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda: 2/3] DDL: Adding missing parsing code
- Date: Tue, 29 Oct 2019 23:53:29 +0000 (UTC)
commit b98425ac96a798f79b29b0cfd58d1227f5954381
Author: Pavlo Solntsev <p sun fun gmail com>
Date: Tue Oct 29 13:51:33 2019 -0500
DDL: Adding missing parsing code
An addition to the d83257054fab
libgda/gda-db-table.c | 11 +++++++++++
1 file changed, 11 insertions(+)
---
diff --git a/libgda/gda-db-table.c b/libgda/gda-db-table.c
index 35d24229e..8f1bedefc 100644
--- a/libgda/gda-db-table.c
+++ b/libgda/gda-db-table.c
@@ -284,6 +284,17 @@ gda_db_table_parse_node (GdaDbBuildable *buildable,
}
else
priv->mp_fkeys = g_list_append (priv->mp_fkeys, fkey);
+ }
+ else if (!g_strcmp0((gchar*)it->name, gdadbtablenodes[GDA_DB_TABLE_CONSTRAINT]))
+ {
+ xmlChar *constraint = xmlNodeGetContent (it);
+
+ if (constraint)
+ {
+ gda_db_table_append_constraint(self, (gchar*)constraint);
+ xmlFree (comment);
+ }
+
} /* end of else if */
} /* End of for loop */
return TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]