Permalink
Browse files

Do not add QueryConstraintGroup to validation list. Refs gh-155

  • Loading branch information...
1 parent 99cc77d commit 9aa46c1aef8027b90fe8677ba1a5bf2086f5ed2b @piotras committed Mar 14, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/sql/midgard_sql_query_select_data.c
@@ -492,7 +492,6 @@ _get_all_constraints (MidgardSqlQuerySelectData *self, MidgardQueryConstraintSim
if (!constr)
return;
- *list = g_slist_prepend (*list, constr);
guint n_objects;
MidgardQueryConstraintSimple **constraints = midgard_query_constraint_simple_list_constraints (constr, &n_objects);
if (!constraints)
@@ -501,6 +500,7 @@ _get_all_constraints (MidgardSqlQuerySelectData *self, MidgardQueryConstraintSim
guint i;
for (i = 0; i < n_objects; i++) {
_get_all_constraints (NULL, constraints[i], list);
+ *list = g_slist_prepend (*list, constraints[i]);
}
g_free (constraints);
@@ -810,6 +810,8 @@ _midgard_sql_query_select_data_executable_iface_execute (MidgardExecutable *ifac
if (MGD_CNC_DEBUG (mgd))
g_debug ("QuerySelectData: %s", self->query_string);
+ g_print ("CORE QUERY : %s \n", self->query_string);
+
/* execute statement */
GdaDataModel *model = gda_connection_statement_execute_select (cnc, stmt, NULL, &err);
g_object_unref (stmt);

0 comments on commit 9aa46c1

Please sign in to comment.