@@ -1258,22 +1258,22 @@ TEST(WindowFunctions) {
12581258TEST (FunctionSchema) {
12591259 TEST_PARSE_SQL_QUERY (
12601260 " SELECT sys.uuid();"
1261- " SELECT json.isarray('[1, 2, 3]');"
1262- result, 1 );
1261+ " SELECT json.isarray('[1, 2, 3]');" ,
1262+ result, 2 );
12631263
12641264 auto stmt = (SelectStatement*)result.getStatement (0 );
12651265 ASSERT_TRUE (stmt->selectList );
12661266 ASSERT_EQ (stmt->selectList ->size (), 1 );
12671267 ASSERT_STREQ (stmt->selectList ->at (0 )->schema , " sys" );
12681268 ASSERT_STREQ (stmt->selectList ->at (0 )->name , " uuid" );
1269- ASSERT_EQ (stmt->selectList ->at (0 )->exprList ->size , 0 );
1269+ ASSERT_EQ (stmt->selectList ->at (0 )->exprList ->size () , 0 );
12701270
1271- auto stmt = (SelectStatement*)result.getStatement (1 );
1271+ stmt = (SelectStatement*)result.getStatement (1 );
12721272 ASSERT_TRUE (stmt->selectList );
12731273 ASSERT_EQ (stmt->selectList ->size (), 1 );
12741274 ASSERT_STREQ (stmt->selectList ->at (0 )->schema , " json" );
12751275 ASSERT_STREQ (stmt->selectList ->at (0 )->name , " isarray" );
1276- ASSERT_EQ (stmt->selectList ->at (0 )->exprList ->size , 1 );
1276+ ASSERT_EQ (stmt->selectList ->at (0 )->exprList ->size () , 1 );
12771277 ASSERT_STREQ (stmt->selectList ->at (0 )->exprList ->at (0 )->name , " '[1, 2, 3]'" );
12781278}
12791279
0 commit comments