Changeset: be17bc388a09 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=be17bc388a09 Modified Files: sql/server/sql_parser.y Branch: Jan2014 Log Message:
add not true/not false parsing (solving bug 3505) diffs (22 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 @@ -4272,10 +4272,18 @@ literal: { sql_subtype t; sql_find_subtype(&t, "boolean", 0, 0 ); $$ = _newAtomNode( atom_bool(SA, &t, FALSE)); } + | NOT BOOL_FALSE + { sql_subtype t; + sql_find_subtype(&t, "boolean", 0, 0 ); + $$ = _newAtomNode( atom_bool(SA, &t, TRUE)); } | BOOL_TRUE { sql_subtype t; sql_find_subtype(&t, "boolean", 0, 0 ); $$ = _newAtomNode( atom_bool(SA, &t, TRUE)); } + | NOT BOOL_TRUE + { sql_subtype t; + sql_find_subtype(&t, "boolean", 0, 0 ); + $$ = _newAtomNode( atom_bool(SA, &t, FALSE)); } ; interval_expression: _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list