We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 255ffb3 commit 8213c85Copy full SHA for 8213c85
crates/parser/src/parse/libpg_query_node.rs
@@ -412,7 +412,23 @@ impl<'p> LibpgQueryNodeParser<'p> {
412
}
413
414
/// list of aliases from https://www.postgresql.org/docs/current/datatype.html
415
-const ALIASES: [&[&str]; 2] = [&["integer", "int", "int4"], &["real", "float4"]];
+const ALIASES: [&[&str]; 15] = [
416
+ &["bigint", "int8"],
417
+ &["bigserial", "serial8"],
418
+ &["bit varying", "varbit"],
419
+ &["boolean", "bool"],
420
+ &["character", "char"],
421
+ &["character varying", "varchar"],
422
+ &["double precision", "float8"],
423
+ &["integer", "int", "int4"],
424
+ &["numeric", "decimal"],
425
+ &["real", "float4"],
426
+ &["smallint", "int2"],
427
+ &["smallserial", "serial2"],
428
+ &["serial", "serial4"],
429
+ &["time with time zone", "timetz"],
430
+ &["timestamp with time zone", "timestamptz"],
431
+];
432
433
fn cmp_tokens(p: &crate::codegen::TokenProperty, token: &crate::lexer::Token) -> bool {
434
// TokenProperty has always either value or kind set
0 commit comments