Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Weakky committed Jul 1, 2024
1 parent 2e7f6bb commit 7277c69
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ mod prisma_21369 {
match_connector_result!(
&runner,
fmt_query_raw("SELECT NULL AS result", []),
Sqlite(_) => vec![r#"{"data":{"queryRaw":{"columns":["result"],"types":["int"],"rows":[[null]]}}}"#],
Sqlite(_) | MySql(_) | SqlServer(_) => vec![r#"{"data":{"queryRaw":{"columns":["result"],"types":["int"],"rows":[[null]]}}}"#],
_ => vec![r#"{"data":{"queryRaw":{"columns":["result"],"types":["string"],"rows":[[null]]}}}"#]

);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ mod typed_output {

insta::assert_snapshot!(
run_query!(&runner, fmt_query_raw(r#"SELECT 1 + 1;"#, vec![])),
@r###"{"data":{"queryRaw":[{"1 + 1":{"prisma__type":"bigint","prisma__value":"2"}}]}}"###
@r###"{"data":{"queryRaw":{"columns":["1 + 1"],"types":["bigint"],"rows":[["2"]]}}}"###
);

Ok(())
Expand Down Expand Up @@ -331,7 +331,7 @@ mod typed_output {

insta::assert_snapshot!(
run_query!(&runner, fmt_query_raw(r#"SELECT 1 + 1;"#, vec![])),
@r###"{"data":{"queryRaw":[{"1 + 1":{"prisma__type":"int","prisma__value":2}}]}}"###
@r###"{"data":{"queryRaw":{"columns":["1 + 1"],"types":["int"],"rows":[[2]]}}}"###
);

Ok(())
Expand Down

0 comments on commit 7277c69

Please sign in to comment.