[libgda] Avoid a compiler warning
- From: Murray Cumming <murrayc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Avoid a compiler warning
- Date: Wed, 31 Oct 2012 15:41:50 +0000 (UTC)
commit d52a6217ee7a1f4ea719cbd428e23b4cff8282e6
Author: Murray Cumming <murrayc murrayc com>
Date: Tue Oct 30 23:35:25 2012 +0100
Avoid a compiler warning
libgda/gda-meta-struct.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libgda/gda-meta-struct.c b/libgda/gda-meta-struct.c
index 3902a40..acbd5e7 100644
--- a/libgda/gda-meta-struct.c
+++ b/libgda/gda-meta-struct.c
@@ -1125,6 +1125,9 @@ _meta_struct_complement (GdaMetaStruct *mstruct, GdaMetaDbObjectType type,
const GValue *fk_catalog, *fk_schema, *fk_tname, *fk_name;
const GValue *upd_policy, *del_policy;
+ GdaDataModel *fk_cols = NULL;
+ GdaDataModel *ref_pk_cols = NULL;
+
fk_catalog = gda_data_model_get_value_at (model, 0, i, error);
if (!fk_catalog) goto onfkerror;
fk_schema = gda_data_model_get_value_at (model, 1, i, error);
@@ -1176,8 +1179,6 @@ _meta_struct_complement (GdaMetaStruct *mstruct, GdaMetaDbObjectType type,
/* FIXME: compute @cols_nb, and all the @*_array members (ref_pk_cols_array must be
* initialized with -1 values everywhere */
sql = "SELECT k.column_name, c.ordinal_position FROM _key_column_usage k INNER JOIN _columns c ON (c.table_catalog = k.table_catalog AND c.table_schema = k.table_schema AND c.table_name=k.table_name AND c.column_name=k.column_name) WHERE k.table_catalog = ##tc::string AND k.table_schema = ##ts::string AND k.table_name = ##tname::string AND k.constraint_name = ##cname::string ORDER BY k.ordinal_position";
- GdaDataModel *fk_cols = NULL;
- GdaDataModel *ref_pk_cols = NULL;
gboolean fkerror = FALSE;
cvalue = gda_data_model_get_value_at (model, 3, i, error);
if (!cvalue) goto onfkerror;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]