File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -412,22 +412,18 @@ impl<'p> LibpgQueryNodeParser<'p> {
412
412
}
413
413
414
414
/// list of aliases from https://www.postgresql.org/docs/current/datatype.html
415
- const ALIASES : [ & [ & str ] ; 15 ] = [
415
+ /// NOTE: support for multi-word alias (e.g. time with time zone) requires parser change
416
+ const ALIASES : [ & [ & str ] ; 10 ] = [
416
417
& [ "bigint" , "int8" ] ,
417
418
& [ "bigserial" , "serial8" ] ,
418
- & [ "bit varying" , "varbit" ] ,
419
419
& [ "boolean" , "bool" ] ,
420
420
& [ "character" , "char" ] ,
421
- & [ "character varying" , "varchar" ] ,
422
- & [ "double precision" , "float8" ] ,
423
421
& [ "integer" , "int" , "int4" ] ,
424
422
& [ "numeric" , "decimal" ] ,
425
423
& [ "real" , "float4" ] ,
426
424
& [ "smallint" , "int2" ] ,
427
425
& [ "smallserial" , "serial2" ] ,
428
426
& [ "serial" , "serial4" ] ,
429
- & [ "time with time zone" , "timetz" ] ,
430
- & [ "timestamp with time zone" , "timestamptz" ] ,
431
427
] ;
432
428
433
429
fn cmp_tokens ( p : & crate :: codegen:: TokenProperty , token : & crate :: lexer:: Token ) -> bool {
You can’t perform that action at this time.
0 commit comments