File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -857,17 +857,15 @@ fn test_generic_connection() {
857
857
#[ test]
858
858
fn test_custom_range_element_type ( ) {
859
859
let conn = or_panic ! ( Connection :: connect( "postgres://postgres@localhost" , SslMode :: None ) ) ;
860
- let trans = or_panic ! ( conn. transaction( ) ) ;
861
- or_panic ! ( trans. execute( "CREATE TYPE floatrange AS RANGE (
860
+ or_panic ! ( conn. execute( "CREATE TYPE pg_temp.floatrange AS RANGE (
862
861
subtype = float8,
863
862
subtype_diff = float8mi
864
863
)" , & [ ] ) ) ;
865
- let stmt = or_panic ! ( trans . prepare( "SELECT $1::floatrange" ) ) ;
864
+ let stmt = or_panic ! ( conn . prepare( "SELECT $1::floatrange" ) ) ;
866
865
match & stmt. param_types ( ) [ 0 ] {
867
866
& Type :: Other ( ref u) => {
868
867
assert_eq ! ( "floatrange" , u. name( ) ) ;
869
868
assert_eq ! ( & Kind :: Range ( Type :: Float8 ) , u. kind( ) ) ;
870
- assert_eq ! ( "public" , u. schema( ) ) ;
871
869
}
872
870
t => panic ! ( "Unexpected type {:?}" , t)
873
871
}
You can’t perform that action at this time.
0 commit comments