[libgda] Improved GI by adding shared library to g-ir-compiler. Bug fix for GdaData.Table.update()
- From: Daniel Espinosa Ortiz <despinosa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Improved GI by adding shared library to g-ir-compiler. Bug fix for GdaData.Table.update()
- Date: Fri, 19 Oct 2012 23:44:12 +0000 (UTC)
commit ab99fbae8bcc6fa9fd9f8b189db2020a05599ab7
Author: Daniel Espinosa <esodan gmail com>
Date: Fri Oct 19 18:42:34 2012 -0500
Improved GI by adding shared library to g-ir-compiler. Bug fix for GdaData.Table.update()
libgda/data/Makefile.am | 8 +++++++-
libgda/data/Table.vala | 8 ++++----
2 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/libgda/data/Makefile.am b/libgda/data/Makefile.am
index 1c3fb6e..225c9b1 100644
--- a/libgda/data/Makefile.am
+++ b/libgda/data/Makefile.am
@@ -94,10 +94,16 @@ endif
# GIR files are generated automatically by Valac then is not necessary to scan source code to generate it
INTROSPECTION_GIRS = GdaData-5.0.gir
+
+# Extract dlname from libfolks.la; see bug #658002.
+# This is what g-ir-scanner does.
+libgdadata_dlname = \
+ `$(SED) -n "s/^dlname='\([A-Za-z0-9.+-]\+\)'/\1/p" libgdadata-5.0.la`
INTROSPECTION_COMPILER_ARGS = \
--includedir=. \
--includedir=$(top_srcdir)/libgda \
- --includedir=$(top_srcdir)/libgda/data
+ --includedir=$(top_srcdir)/libgda/data \
+ -l $(libgdadata_dlname)
GdaData-5.0.typelib: $(INTROSPECTION_GIRS)
$(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) $< -o $@
diff --git a/libgda/data/Table.vala b/libgda/data/Table.vala
index 5a5aee1..6e1fb1a 100644
--- a/libgda/data/Table.vala
+++ b/libgda/data/Table.vala
@@ -91,7 +91,7 @@ namespace GdaData
catalog = new Catalog ();
catalog.connection = connection;
catalog.name = (string) catm.get_value_at (catm.get_column_index ("catalog_name"), 0);
- if (!update_meta) {
+ if (update_meta) {
try {
var cxs = new Gda.MetaContext ();
cxs.set_table ("_schemata");
@@ -181,7 +181,7 @@ namespace GdaData
_fields.set (fi.name, fi);
}
// Constraints
- if (!update_meta) {
+ if (update_meta) {
try {
var cxcr = new Gda.MetaContext ();
cxcr.set_table ("_table_constraints");
@@ -196,7 +196,7 @@ namespace GdaData
GLib.message ("Meta store update ... Ok");
}
}
- if (!update_meta) {
+ if (update_meta) {
try {
var cxcr2 = new Gda.MetaContext ();
cxcr2.set_table ("_key_column_usage");
@@ -232,7 +232,7 @@ namespace GdaData
if (DbFieldInfo.Attribute.FOREIGN_KEY in f.attributes)
{
- if (!update_meta) {
+ if (update_meta) {
try {
var cxcr3 = new Gda.MetaContext ();
cxcr3.set_table ("_referential_constraints");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]