File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -3697,6 +3697,7 @@ module.exports = grammar({
36973697 $ . _double_quote_string ,
36983698 $ . _backtick_quoted_string ,
36993699 $ . _tsql_parameter ,
3700+ seq ( "`" , $ . _identifier , "`" ) ,
37003701 ) ,
37013702 _tsql_parameter : $ => seq ( '@' , $ . _identifier ) ,
37023703 // support nordic chars and umlaue
Original file line number Diff line number Diff line change @@ -3192,3 +3192,24 @@ SELECT * FROM "table_name";
31923192 (relation
31933193 (object_reference
31943194 name: (identifier))))))
3195+
3196+ ================================================================================
3197+ Select from table with identifiers containing hyphens, dots, or other special characters within backticks
3198+ ================================================================================
3199+
3200+ SELECT * FROM `complex-database.schema_name.table_name`;
3201+
3202+ --------------------------------------------------------------------------------
3203+
3204+ (program
3205+ (statement
3206+ (select
3207+ (keyword_select)
3208+ (select_expression
3209+ (term
3210+ value: (all_fields))))
3211+ (from
3212+ (keyword_from)
3213+ (relation
3214+ (object_reference
3215+ name: (identifier))))))
You can’t perform that action at this time.
0 commit comments