Changeset: d3b9fd730c74 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d3b9fd730c74
Modified Files:
        sql/server/sql_parser.y
Branch: graph0
Log Message:

Bugfix: parser, an alias might not be given

Fix the segmentation fault in the parser when in a
selection clause a column has not an associated alias


diffs (12 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
@@ -4195,7 +4195,7 @@ column_exp:
           
                  append_symbol(l, $1);
                  if( $2 == NULL || dlist_length($2) == 1 ) {
-                   append_string(l, $2->h->data.sval);
+                   append_string(l, $2 ? $2->h->data.sval : NULL);
                    $$ = _symbol_create_list( SQL_COLUMN, l );
                  } else { // |$2| > 1
                    append_list(l, $2);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to