Test that regexp can be used as an identifier in postgres (#1018)

This commit is contained in:
Ophir LOJKINE 2023-10-24 12:30:05 +02:00 committed by GitHub
parent 86aa1b96be
commit 57090537f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3390,6 +3390,13 @@ fn parse_truncate() {
);
}
#[test]
fn parse_select_regexp_as_column_name() {
pg_and_generic().verified_only_select(
"SELECT REGEXP.REGEXP AS REGEXP FROM REGEXP AS REGEXP WHERE REGEXP.REGEXP",
);
}
#[test]
fn parse_create_table_with_alias() {
let sql = "CREATE TABLE public.datatype_aliases