Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
msepga committed Nov 26, 2024
1 parent 58fdeb4 commit ac553dc
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions tests/data/plpgsql_query.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"PLpgSQL_var": {
"datatype": {
"PLpgSQL_type": {
"typname": "UNKNOWN"
"typname": "pg_catalog.int4"
}
},
"refname": "input"
Expand All @@ -58,7 +58,7 @@
"PLpgSQL_var": {
"datatype": {
"PLpgSQL_type": {
"typname": "UNKNOWN"
"typname": "pg_catalog.\"boolean\""
}
},
"refname": "found"
Expand Down
6 changes: 3 additions & 3 deletions tests/data/plpgsql_simple.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"PLpgSQL_var": {
"datatype": {
"PLpgSQL_type": {
"typname": "UNKNOWN"
"typname": "pg_catalog.\"varchar\""
}
},
"refname": "v_name"
Expand All @@ -58,7 +58,7 @@
"PLpgSQL_var": {
"datatype": {
"PLpgSQL_type": {
"typname": "UNKNOWN"
"typname": "pg_catalog.\"varchar\""
}
},
"refname": "v_version"
Expand All @@ -68,7 +68,7 @@
"PLpgSQL_var": {
"datatype": {
"PLpgSQL_type": {
"typname": "UNKNOWN"
"typname": "pg_catalog.\"boolean\""
}
},
"refname": "found"
Expand Down
2 changes: 1 addition & 1 deletion tests/fingerprint_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
7 changes: 4 additions & 3 deletions tests/parse_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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,
},
),
),
Expand Down

0 comments on commit ac553dc

Please sign in to comment.