Skip to content

Commit a72e1c1

Browse files
committed
Make OPEN reserved for table aliases
- this is useful since opening a cursor typically happens immediately after declaring the cursor's query
1 parent 5ec1463 commit a72e1c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/keywords.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,8 @@ pub const RESERVED_FOR_TABLE_ALIAS: &[Keyword] = &[
10651065
Keyword::SAMPLE,
10661066
Keyword::TABLESAMPLE,
10671067
Keyword::FROM,
1068+
// Reserved for SQL Server cursors
1069+
Keyword::OPEN,
10681070
];
10691071

10701072
/// Can't be used as a column alias, so that `SELECT <expr> alias`

0 commit comments

Comments
 (0)