Skip to content

Commit 5709053

Browse files
authored
Test that regexp can be used as an identifier in postgres (#1018)
1 parent 86aa1b9 commit 5709053

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/sqlparser_postgres.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3390,6 +3390,13 @@ fn parse_truncate() {
33903390
);
33913391
}
33923392

3393+
#[test]
3394+
fn parse_select_regexp_as_column_name() {
3395+
pg_and_generic().verified_only_select(
3396+
"SELECT REGEXP.REGEXP AS REGEXP FROM REGEXP AS REGEXP WHERE REGEXP.REGEXP",
3397+
);
3398+
}
3399+
33933400
#[test]
33943401
fn parse_create_table_with_alias() {
33953402
let sql = "CREATE TABLE public.datatype_aliases

0 commit comments

Comments
 (0)