diff --git a/tests/data/plpgsql_query.json b/tests/data/plpgsql_query.json index cd9dcdd..41b7110 100644 --- a/tests/data/plpgsql_query.json +++ b/tests/data/plpgsql_query.json @@ -48,7 +48,7 @@ "PLpgSQL_var": { "datatype": { "PLpgSQL_type": { - "typname": "UNKNOWN" + "typname": "pg_catalog.int4" } }, "refname": "input" @@ -58,7 +58,7 @@ "PLpgSQL_var": { "datatype": { "PLpgSQL_type": { - "typname": "UNKNOWN" + "typname": "pg_catalog.\"boolean\"" } }, "refname": "found" diff --git a/tests/data/plpgsql_simple.json b/tests/data/plpgsql_simple.json index b70cc76..0f58cc9 100644 --- a/tests/data/plpgsql_simple.json +++ b/tests/data/plpgsql_simple.json @@ -48,7 +48,7 @@ "PLpgSQL_var": { "datatype": { "PLpgSQL_type": { - "typname": "UNKNOWN" + "typname": "pg_catalog.\"varchar\"" } }, "refname": "v_name" @@ -58,7 +58,7 @@ "PLpgSQL_var": { "datatype": { "PLpgSQL_type": { - "typname": "UNKNOWN" + "typname": "pg_catalog.\"varchar\"" } }, "refname": "v_version" @@ -68,7 +68,7 @@ "PLpgSQL_var": { "datatype": { "PLpgSQL_type": { - "typname": "UNKNOWN" + "typname": "pg_catalog.\"boolean\"" } }, "refname": "found" diff --git a/tests/fingerprint_tests.rs b/tests/fingerprint_tests.rs index d552ee2..e395c58 100644 --- a/tests/fingerprint_tests.rs +++ b/tests/fingerprint_tests.rs @@ -178,7 +178,7 @@ fn it_works() { assert_eq!(result.hex, "d8a65a814fbc5f95"); let result = fingerprint("DEALLOCATE ALL").unwrap(); - assert_eq!(result.hex, "d8a65a814fbc5f95"); + assert_eq!(result.hex, "2debfb8745df64a7"); let result = fingerprint("EXPLAIN ANALYZE SELECT a").unwrap(); assert_eq!(result.hex, "82845c1b5c6102e5"); diff --git a/tests/parse_tests.rs b/tests/parse_tests.rs index 57e5284..a14c1ff 100644 --- a/tests/parse_tests.rs +++ b/tests/parse_tests.rs @@ -125,11 +125,13 @@ fn it_parses_ALTER_TABLE() { conname: "", deferrable: false, initdeferred: false, - location: 21, + skip_validation: false, + initially_valid: false, is_no_inherit: false, raw_expr: None, cooked_expr: "", generated_when: "", + inhcount: 0, nulls_not_distinct: false, keys: [ Node { @@ -159,8 +161,7 @@ fn it_parses_ALTER_TABLE() { fk_del_set_cols: [], old_conpfeqop: [], old_pktable_oid: 0, - skip_validation: false, - initially_valid: false, + location: 21, }, ), ),