Changeset: 6dad46a0dc4e for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6dad46a0dc4e
Modified Files:
sql/server/sql_parser.y
Branch: sciql
Log Message:
Disable the alternative '(' scalar_exp_list ')' in value_exp,
which looks redundant.
I don't see the need to have this rule added.
It conflicts with the alternative '(' search_condition ')' in
simple_scalar_exp, and it causes the SQL query
"insert into t2 select (x - y)/3 from t1;" to produce incorrect result.
diffs (17 lines):
diff --git a/sql/server/sql_parser.y b/sql/server/sql_parser.y
--- a/sql/server/sql_parser.y
+++ b/sql/server/sql_parser.y
@@ -3441,11 +3441,13 @@
l = append_list(l,$3);
$$ = _symbol_create_list( SQL_ARRAY, l);
}
+/*
| '(' scalar_exp_list ')' {
dlist *l = L();
l = append_list(l,$2);
$$ = _symbol_create_list( SQL_ARRAY, l);
}
+*/
| '[' scalar_exp ']'
{
$$ = NULL;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list