Skip to content

Commit

Permalink
test using regexp as an identifier in postgres
Browse files Browse the repository at this point in the history
"regexp" is not a keyword in postgres and can be used as an identifier
  • Loading branch information
lovasoa committed Oct 21, 2023
1 parent 83cb734 commit 7b58f0a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/sqlparser_postgres.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3383,6 +3383,15 @@ fn parse_truncate() {
);
}

Check failure on line 3384 in tests/sqlparser_postgres.rs

View workflow job for this annotation

GitHub Actions / codestyle

Diff in /home/runner/work/sqlparser-rs/sqlparser-rs/tests/sqlparser_postgres.rs


#[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",
);

Check failure on line 3391 in tests/sqlparser_postgres.rs

View workflow job for this annotation

GitHub Actions / codestyle

Diff in /home/runner/work/sqlparser-rs/sqlparser-rs/tests/sqlparser_postgres.rs
}


#[test]
fn parse_create_table_with_alias() {
let sql = "CREATE TABLE public.datatype_aliases
Expand Down

0 comments on commit 7b58f0a

Please sign in to comment.