blob: 41bf5bf1a138e429a39f8c8b205445821ab0b01e (
plain) (
tree)
|
|
--- libmergeant/mg-query.c.orig Sun Aug 8 11:20:06 2004
+++ libmergeant/mg-query.c Wed Jan 5 02:07:47 2005
@@ -44,7 +44,7 @@
#include "mg-server-aggregate.h"
#include "mg-data-handler.h"
-#include <libgda/sql/sql_parser.h>
+#include <libgda-1.2/sql/sql_parser.h>
#include "mg-qf-func.h"
/*
@@ -5117,9 +5117,11 @@
if (!cond)
has_error = TRUE;
else {
+ MgQfield *field_left;
+ MgQfield *field_right;
g_assert (mg_condition_get_cond_type (cond) == MG_CONDITION_LEAF_EQUAL);
- MgQfield *field_left = mg_condition_leaf_get_operator (cond, MG_CONDITION_OP_LEFT);
- MgQfield *field_right = mg_condition_leaf_get_operator (cond, MG_CONDITION_OP_RIGHT);
+ field_left = mg_condition_leaf_get_operator (cond, MG_CONDITION_OP_LEFT);
+ field_right = mg_condition_leaf_get_operator (cond, MG_CONDITION_OP_RIGHT);
if (IS_MG_QF_FIELD (field_left)) {
g_object_set (G_OBJECT (field_left), "value_provider", field_right, NULL);
|