Changeset: 4d51b9359998 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/4d51b9359998
Modified Files:
sql/server/sqlparse.c
Branch: default
Log Message:
Need braces around declaration after case label.
diffs (20 lines):
diff --git a/sql/server/sqlparse.c b/sql/server/sqlparse.c
--- a/sql/server/sqlparse.c
+++ b/sql/server/sqlparse.c
@@ -423,7 +423,7 @@ sp_symbol2string(mvc *sql, symbol *se, i
return res;
}
case SQL_AND:
- case SQL_OR:
+ case SQL_OR: {
char *tok_str = token2string(se->token);
char *args = dlist2string(sql, se->data.lval, ", ", " (", " )",
expression, err, depth + 1, indent);
char *res;
@@ -433,6 +433,7 @@ sp_symbol2string(mvc *sql, symbol *se, i
if ((res = SA_NEW_ARRAY(sql->ta, char, strlen(tok_str) +
strlen(args) + 1)))
stpcpy(stpcpy(res, tok_str), args);
return res;
+ }
default:
/* generic */
if (se->type == type_list) {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]