File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1486,7 +1486,7 @@ mod test {
1486
1486
. map ( |expr| match expr {
1487
1487
ast:: Expr :: Identifier ( ident) => ident. to_string ( ) ,
1488
1488
ast:: Expr :: Value ( ast:: Value :: SingleQuotedString ( s) ) => {
1489
- format ! ( "'<encrypted-selector({})>'" , s)
1489
+ format ! ( "ROW( '<encrypted-selector({})>'::JSONB) " , s)
1490
1490
}
1491
1491
_ => panic ! ( "unsupported expr type in test util" ) ,
1492
1492
} )
@@ -1541,7 +1541,7 @@ mod test {
1541
1541
match typed. transform ( test_helpers:: dummy_encrypted_json_selector ( & statement, ast:: Value :: SingleQuotedString ( "medications" . to_owned ( ) ) ) ) {
1542
1542
Ok ( statement) => assert_eq ! (
1543
1543
statement. to_string( ) ,
1544
- format!( "SELECT id, notes {} '<encrypted-selector(medications)>' AS meds FROM patients" , op)
1544
+ format!( "SELECT id, notes {} ROW( '<encrypted-selector(medications)>'::JSONB) AS meds FROM patients" , op)
1545
1545
) ,
1546
1546
Err ( err) => panic ! ( "transformation failed: {err}" ) ,
1547
1547
}
You can’t perform that action at this time.
0 commit comments