Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 1b1adf3

Browse files
committed
Allow double-quoted string literals in PRAGMA.
Allow double quoted string literals as pragma values but do not treat them as an identifier because it is impossible from the surrounding context to determine whether it is a column, table, or database identifier.
1 parent 0a70bcf commit 1b1adf3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/grammar.pegjs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,9 +1100,17 @@ pragma_value
11001100
/ pragma_value_literal
11011101
/ pragma_value_name
11021102

1103+
/**
1104+
* @note
1105+
* Allow double quoted string literals as pragma values but do not treat
1106+
* them as an identifier because it is impossible from the surrounding
1107+
* context to determine whether it is a column, table, or database
1108+
* identifier.
1109+
*/
11031110
pragma_value_literal
11041111
= literal_number_signed
11051112
/ literal_string
1113+
/ literal_text
11061114

11071115
/**
11081116
* @note

0 commit comments

Comments
 (0)