[libgda] Removed crasher for compound statements
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Removed crasher for compound statements
- Date: Tue, 8 Nov 2011 22:14:41 +0000 (UTC)
commit 3f0359a4b07ca2b08b12d9fc24599ceba9bb5cb7
Author: Vivien Malerba <malerba gnome-db org>
Date: Tue Nov 8 21:21:09 2011 +0100
Removed crasher for compound statements
libgda/sql-parser/gda-statement-struct.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/libgda/sql-parser/gda-statement-struct.c b/libgda/sql-parser/gda-statement-struct.c
index b00c85f..e6f59f5 100644
--- a/libgda/sql-parser/gda-statement-struct.c
+++ b/libgda/sql-parser/gda-statement-struct.c
@@ -687,6 +687,9 @@ find_table_or_view (GdaSqlAnyPart *part, GdaSqlStatementCheckValidityData *data,
case GDA_SQL_ANY_STMT_DELETE:
TO_IMPLEMENT;
break;
+ case GDA_SQL_ANY_STMT_COMPOUND:
+ TO_IMPLEMENT;
+ break;
default:
g_assert_not_reached ();
break;
@@ -854,9 +857,7 @@ static gboolean
gda_sql_select_target_check_validity (GdaSqlSelectTarget *target, GdaSqlStatementCheckValidityData *data, GError **error)
{
GdaMetaDbObject *dbo;
-
- if (!target) return TRUE;
- if (!target->table_name)
+ if (!target || !target->table_name)
return TRUE;
dbo = find_table_or_view ((GdaSqlAnyPart*) target, data, target->table_name, error);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]