Changeset: eba1fa8acc19 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/eba1fa8acc19
Modified Files:
sql/server/sql_parser.y
Branch: Dec2025
Log Message:
Remove unnecesary leading space(s) before a tab character.
diffs (truncated from 519 to 300 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
@@ -1245,7 +1245,7 @@ grantor:
;
grant:
- GRANT privileges TO grantee_commalist opt_with_grant opt_from_grantor
+ GRANT privileges TO grantee_commalist opt_with_grant opt_from_grantor
{
dlist *l = L();
append_list(l, $2);
@@ -1791,13 +1791,13 @@ CREATE [ UNIQUE ] INDEX index_name
[ ON filegroup ]
< index_option > :: =
{
- PAD_INDEX |
- FILLFACTOR = fillfactor |
- IGNORE_DUP_KEY |
- DROP_EXISTING |
- STATISTICS_NORECOMPUTE |
- SORT_IN_TEMPDB
- }
+ PAD_INDEX |
+ FILLFACTOR = fillfactor |
+ IGNORE_DUP_KEY |
+ DROP_EXISTING |
+ STATISTICS_NORECOMPUTE |
+ SORT_IN_TEMPDB
+ }
*/
role_def:
@@ -1907,7 +1907,7 @@ table_def:
$$ = _symbol_create_list( SQL_CREATE_TABLE, l );
}
| table_if_not_exists qname FROM sqlLOADER func_ref
- {
+ {
dlist *l = L();
append_list(l, $2);
append_symbol(l, $5);
@@ -2381,7 +2381,7 @@ table_constraint:
opt_constraint_name:
/* empty */ { $$ = NULL; }
- | CONSTRAINT ident { $$ = $2; }
+ | CONSTRAINT ident { $$ = $2; }
;
ref_action:
@@ -2402,22 +2402,22 @@ ref_on_delete:
opt_ref_action:
/* empty */ { $$ = (2 << 8) + 2; /*
defaults are RESTRICT */ }
- | ref_on_update { $$ = $1; }
- | ref_on_delete { $$ = $1; }
- | ref_on_delete ref_on_update { $$ = $1 + $2; }
- | ref_on_update ref_on_delete { $$ = $1 + $2; }
+ | ref_on_update { $$ = $1; }
+ | ref_on_delete { $$ = $1; }
+ | ref_on_delete ref_on_update { $$ = $1 + $2; }
+ | ref_on_update ref_on_delete { $$ = $1 + $2; }
;
opt_match_type:
/* empty */ { $$ = 0; }
- | FULL { $$ = 1; }
- | PARTIAL { $$ = 2; }
- | SIMPLE { $$ = 0; }
+ | FULL { $$ = 1; }
+ | PARTIAL { $$ = 2; }
+ | SIMPLE { $$ = 0; }
;
opt_match:
/* empty */ { $$ = 0; }
- | MATCH opt_match_type { $$ = $2; }
+ | MATCH opt_match_type { $$ = $2; }
;
check_parenthesis_open:
@@ -2462,7 +2462,7 @@ column_constraint_type:
append_int(l, $5 );
$$ = _symbol_create_list( SQL_FOREIGN_KEY, l);
}
- | CHECK check_search_condition { $$ = $2; }
+ | CHECK check_search_condition { $$ = $2; }
;
table_constraint_type:
@@ -2505,7 +2505,7 @@ view_def:
append_int(l, $1);
$$ = _symbol_create_list( SQL_CREATE_VIEW, l );
}
- | CREATE OR REPLACE local_temp VIEW qname opt_column_list AS
SelectStmt
+ | CREATE OR REPLACE local_temp VIEW qname opt_column_list AS
SelectStmt
{
dlist *l = L();
append_int(l, $4);
@@ -2812,7 +2812,7 @@ when_statements:
case_opt_else_statement:
/* empty */ { $$ = NULL; }
- | ELSE procedure_statement_list { $$ = $2; }
+ | ELSE procedure_statement_list { $$ = $2; }
;
if_statement:
@@ -2907,7 +2907,7 @@ paramlist:
append_type(p, &$4);
$$ = append_list($1, p);
}
- | column_id data_type
+ | column_id data_type
{
dlist *l = L();
dlist *p = L();
@@ -3424,7 +3424,7 @@ opt_header_list:
header_list:
header { $$ = append_list(L(), $1); }
- | header_list ',' header { $$ = append_list($1, $3); }
+ | header_list ',' header { $$ = append_list($1, $3); }
;
header:
@@ -3924,7 +3924,7 @@ simple_select:
$5->h->next->next->next->next->data.sym,
$5->h->next->next->next->next->next->data.sym);
}
- | values_clause { $$ = $1; }
+ | values_clause { $$ = $1; }
| select_clause UNION set_distinct opt_corresponding select_clause
{
dlist *l = L();
@@ -4140,7 +4140,7 @@ select_clause:
set_distinct:
ALL { $$ = FALSE; }
- | DISTINCT { $$ = TRUE; }
+ | DISTINCT { $$ = TRUE; }
| /*empty */ { $$ = TRUE; }
;
@@ -4392,13 +4392,13 @@ opt_having_clause:
;
opt_order_by_clause:
- /* empty */ { $$ = NULL; }
+ /* empty */ { $$ = NULL; }
| order_by_clause { $$ = $1; }
;
order_by_clause:
- ORDER BY all { $$ = _symbol_create_list(
SQL_ORDERBY, NULL); }
- | ORDER BY sort_specification_list { $$ =
_symbol_create_list( SQL_ORDERBY, $3); }
+ ORDER BY all { $$ = _symbol_create_list(
SQL_ORDERBY, NULL); }
+ | ORDER BY sort_specification_list { $$ =
_symbol_create_list( SQL_ORDERBY, $3); }
;
first_next:
@@ -5342,7 +5342,7 @@ window_frame_start:
window_bound:
window_frame_start
- | window_following_bound
+ | window_following_bound
;
window_frame_between:
@@ -5413,7 +5413,7 @@ datetime_funcs:
append_list(l, NULL);
$$ = _symbol_create_list( SQL_NOP, l );
}
- | CURRENT_TIME opt_brackets
+ | CURRENT_TIME opt_brackets
{
dlist *l = L();
append_list(l, append_string(L(), ma_strdup(SA,
"current_time")));
@@ -5421,7 +5421,7 @@ datetime_funcs:
append_list(l, NULL);
$$ = _symbol_create_list( SQL_NOP, l );
}
- | CURRENT_TIMESTAMP opt_brackets
+ | CURRENT_TIMESTAMP opt_brackets
{
dlist *l = L();
append_list(l, append_string(L(), ma_strdup(SA,
"current_timestamp")));
@@ -5429,7 +5429,7 @@ datetime_funcs:
append_list(l, NULL);
$$ = _symbol_create_list( SQL_NOP, l );
}
- | LOCALTIME opt_brackets
+ | LOCALTIME opt_brackets
{
dlist *l = L();
append_list(l, append_string(L(), ma_strdup(SA,
"localtime")));
@@ -5437,7 +5437,7 @@ datetime_funcs:
append_list(l, NULL);
$$ = _symbol_create_list( SQL_NOP, l );
}
- | LOCALTIMESTAMP opt_brackets
+ | LOCALTIMESTAMP opt_brackets
{
dlist *l = L();
append_list(l, append_string(L(), ma_strdup(SA,
"localtimestamp")));
@@ -5454,7 +5454,7 @@ opt_brackets:
trim_list:
scalar_exp FROM expr_list { $$ = append_symbol($3, $1); }
- | FROM expr_list { $$ = $2; }
+ | FROM expr_list { $$ = $2; }
| expr_list { $$ = $$; }
;
@@ -6745,7 +6745,7 @@ non_reserved_keyword:
| VALUE { $$ = ma_strdup(SA, "value"); } /*
sloppy: officially reserved */
| WITHOUT { $$ = ma_strdup(SA, "without"); } /*
sloppy: officially reserved */
- /* SQL/XML non reserved words */
+ /* SQL/XML non reserved words */
| ABSENT { $$ = ma_strdup(SA, "absent"); }
| ACCORDING { $$ = ma_strdup(SA, "according"); }
| CONTENT { $$ = ma_strdup(SA, "content"); }
@@ -6819,7 +6819,7 @@ non_reserved_keyword:
| WEEK { $$ = ma_strdup(SA, "week"); }
| ZONE { $$ = ma_strdup(SA, "zone"); }
- /* odbc escape sequence non reserved words */
+ /* odbc escape sequence non reserved words */
| ODBC_DATE_ESCAPE_PREFIX { $$ = ma_strdup(SA, "d"); }
| ODBC_TIME_ESCAPE_PREFIX { $$ = ma_strdup(SA, "t"); }
| ODBC_TIMESTAMP_ESCAPE_PREFIX { $$ = ma_strdup(SA, "ts"); }
@@ -6839,30 +6839,30 @@ non_reserved_keyword:
/* column identifiers */
column_name_keyword:
BETWEEN { $$ = ma_strdup(SA, "between"); }
- | CHARACTER { $$ = ma_strdup(SA, "character"); }
- | COALESCE { $$ = ma_strdup(SA, "coalesce"); }
- | EXISTS { $$ = ma_strdup(SA, "exists"); }
- | EXTRACT { $$ = ma_strdup(SA, "extract"); }
- | GROUPING { $$ = ma_strdup(SA, "grouping"); }
- | INTERVAL { $$ = ma_strdup(SA, "interval"); }
- | NULLIF { $$ = ma_strdup(SA, "nullif"); }
- | POSITION { $$ = ma_strdup(SA, "position"); }
- | PRECISION { $$ = ma_strdup(SA, "precision"); } /*
sloppy: officially reserved */
- | sqlREAL
- | ROW { $$ = ma_strdup(SA, "row"); } /*
sloppy: officially reserved */
- | SUBSTRING { $$ = ma_strdup(SA, "substring"); }
- | TIME { $$ = ma_strdup(SA, "time"); }
- | TIMESTAMP { $$ = ma_strdup(SA, "timestamp"); }
- | TRIM { $$ = ma_strdup(SA, "trim"); }
- | VALUES { $$ = ma_strdup(SA, "values"); }
- | XMLATTRIBUTES { $$ = ma_strdup(SA, "xmlatributes"); }
- | XMLCONCAT { $$ = ma_strdup(SA, "xmlconcat"); }
- | XMLELEMENT { $$ = ma_strdup(SA, "xmlelement"); }
- | XMLFOREST { $$ = ma_strdup(SA, "xmlforest"); }
- | XMLPARSE { $$ = ma_strdup(SA, "xmlparse"); }
- | XMLPI { $$ = ma_strdup(SA, "xmlpi"); }
+ | CHARACTER { $$ = ma_strdup(SA, "character"); }
+ | COALESCE { $$ = ma_strdup(SA, "coalesce"); }
+ | EXISTS { $$ = ma_strdup(SA, "exists"); }
+ | EXTRACT { $$ = ma_strdup(SA, "extract"); }
+ | GROUPING { $$ = ma_strdup(SA, "grouping"); }
+ | INTERVAL { $$ = ma_strdup(SA, "interval"); }
+ | NULLIF { $$ = ma_strdup(SA, "nullif"); }
+ | POSITION { $$ = ma_strdup(SA, "position"); }
+ | PRECISION { $$ = ma_strdup(SA, "precision"); } /*
sloppy: officially reserved */
+ | sqlREAL
+ | ROW { $$ = ma_strdup(SA, "row"); } /*
sloppy: officially reserved */
+ | SUBSTRING { $$ = ma_strdup(SA, "substring"); }
+ | TIME { $$ = ma_strdup(SA, "time"); }
+ | TIMESTAMP { $$ = ma_strdup(SA, "timestamp"); }
+ | TRIM { $$ = ma_strdup(SA, "trim"); }
+ | VALUES { $$ = ma_strdup(SA, "values"); }
+ | XMLATTRIBUTES { $$ = ma_strdup(SA, "xmlatributes"); }
+ | XMLCONCAT { $$ = ma_strdup(SA, "xmlconcat"); }
+ | XMLELEMENT { $$ = ma_strdup(SA, "xmlelement"); }
+ | XMLFOREST { $$ = ma_strdup(SA, "xmlforest"); }
+ | XMLPARSE { $$ = ma_strdup(SA, "xmlparse"); }
+ | XMLPI { $$ = ma_strdup(SA, "xmlpi"); }
/* odbc */
- | IFNULL { $$ = ma_strdup(SA, "ifnull"); }
+ | IFNULL { $$ = ma_strdup(SA, "ifnull"); }
;
function_name_keyword:
@@ -6873,21 +6873,21 @@ function_name_keyword:
reserved_keyword:
ALL { $$ = ma_strdup(SA, "all"); }
- | AND { $$ = ma_strdup(SA, "and"); }
- | ANY { $$ = ma_strdup(SA, "ANY"); }
- | AS { $$ = ma_strdup(SA, "as"); }
- | ASC { $$ = ma_strdup(SA, "asc"); }
- | ASYMMETRIC { $$ = ma_strdup(SA, "asymmetric"); }
- | BOTH { $$ = ma_strdup(SA, "both"); }
- | CASE { $$ = ma_strdup(SA, "case"); }
- | CAST { $$ = ma_strdup(SA, "cast"); }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]