File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -1910,11 +1910,24 @@ end
1910
1910
@test LibPQ. num_rows (result) == 1
1911
1911
@test LibPQ. column_name (result, 1 ) == " typname"
1912
1912
@test LibPQ. column_number (result, " typname" ) == 1
1913
-
1914
1913
data = columntable (result)
1915
-
1916
1914
@test data[:typname ][1 ] == " bool"
1917
1915
1916
+ qstr = " SELECT \$ 1::double precision as foo, typname FROM pg_type WHERE oid = \$ 2"
1917
+ stmt = DBInterface. prepare (conn, qstr)
1918
+ result = DBInterface. execute (
1919
+ conn,
1920
+ qstr,
1921
+ (1.0 , 16 );
1922
+ )
1923
+ @test result isa LibPQ. Result
1924
+ @test status (result) == LibPQ. libpq_c. PGRES_TUPLES_OK
1925
+ @test isopen (result)
1926
+ @test LibPQ. num_columns (result) == 2
1927
+ @test LibPQ. num_rows (result) == 1
1928
+ @test LibPQ. column_name (result, 1 ) == " foo"
1929
+ @test LibPQ. column_name (result, 2 ) == " typname"
1930
+
1918
1931
DBInterface. close! (result)
1919
1932
@test ! isopen (result)
1920
1933
You can’t perform that action at this time.
0 commit comments