@@ -41,7 +41,7 @@ TEST_CASE("query with SELECT should work")
4141 REQUIRE (result.status () == PGRES_TUPLES_OK);
4242 REQUIRE (result.num_fields () == 1 );
4343 REQUIRE (result.num_tuples () == 1 );
44- REQUIRE (result.get_value_as_string (0 , 0 ) == " 42" );
44+ REQUIRE (result.get (0 , 0 ) == " 42" );
4545}
4646
4747TEST_CASE (" query with invalid SQL should fail" )
@@ -65,7 +65,7 @@ TEST_CASE("exec_prepared without parameters should work")
6565 REQUIRE (result.status () == PGRES_TUPLES_OK);
6666 REQUIRE (result.num_fields () == 1 );
6767 REQUIRE (result.num_tuples () == 1 );
68- REQUIRE (result.get_value_as_string (0 , 0 ) == " 42" );
68+ REQUIRE (result.get (0 , 0 ) == " 42" );
6969}
7070
7171TEST_CASE (" exec_prepared with single string parameters should work" )
@@ -77,7 +77,7 @@ TEST_CASE("exec_prepared with single string parameters should work")
7777 REQUIRE (result.status () == PGRES_TUPLES_OK);
7878 REQUIRE (result.num_fields () == 1 );
7979 REQUIRE (result.num_tuples () == 1 );
80- REQUIRE (result.get_value_as_string (0 , 0 ) == " 17" );
80+ REQUIRE (result.get (0 , 0 ) == " 17" );
8181}
8282
8383TEST_CASE (" exec_prepared with string parameters should work" )
@@ -89,7 +89,7 @@ TEST_CASE("exec_prepared with string parameters should work")
8989 REQUIRE (result.status () == PGRES_TUPLES_OK);
9090 REQUIRE (result.num_fields () == 1 );
9191 REQUIRE (result.num_tuples () == 1 );
92- REQUIRE (result.get_value_as_string (0 , 0 ) == " 6" );
92+ REQUIRE (result.get (0 , 0 ) == " 6" );
9393}
9494
9595TEST_CASE (" exec_prepared with non-string parameters should work" )
@@ -101,5 +101,5 @@ TEST_CASE("exec_prepared with non-string parameters should work")
101101 REQUIRE (result.status () == PGRES_TUPLES_OK);
102102 REQUIRE (result.num_fields () == 1 );
103103 REQUIRE (result.num_tuples () == 1 );
104- REQUIRE (result.get_value_as_string (0 , 0 ) == " 6" );
104+ REQUIRE (result.get (0 , 0 ) == " 6" );
105105}
0 commit comments