@@ -1258,23 +1258,23 @@ TEST(WindowFunctions) {
1258
1258
TEST (FunctionSchema) {
1259
1259
TEST_PARSE_SQL_QUERY (
1260
1260
" SELECT sys.uuid();"
1261
- " SELECT json.isarray('[1, 2, 3]');"
1262
- result, 1 );
1261
+ " SELECT json.isarray('[1, 2, 3]');" ,
1262
+ result, 2 );
1263
1263
1264
1264
auto stmt = (SelectStatement*)result.getStatement (0 );
1265
1265
ASSERT_TRUE (stmt->selectList );
1266
1266
ASSERT_EQ (stmt->selectList ->size (), 1 );
1267
1267
ASSERT_STREQ (stmt->selectList ->at (0 )->schema , " sys" );
1268
1268
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 );
1270
1270
1271
- auto stmt = (SelectStatement*)result.getStatement (1 );
1271
+ stmt = (SelectStatement*)result.getStatement (1 );
1272
1272
ASSERT_TRUE (stmt->selectList );
1273
1273
ASSERT_EQ (stmt->selectList ->size (), 1 );
1274
1274
ASSERT_STREQ (stmt->selectList ->at (0 )->schema , " json" );
1275
1275
ASSERT_STREQ (stmt->selectList ->at (0 )->name , " isarray" );
1276
- ASSERT_EQ (stmt->selectList ->at (0 )->exprList ->size , 1 );
1277
- ASSERT_STREQ (stmt->selectList ->at (0 )->exprList ->at (0 )->name , " ' [1, 2, 3]' " );
1276
+ ASSERT_EQ (stmt->selectList ->at (0 )->exprList ->size () , 1 );
1277
+ ASSERT_STREQ (stmt->selectList ->at (0 )->exprList ->at (0 )->name , " [1, 2, 3]" );
1278
1278
}
1279
1279
1280
1280
} // namespace hsql
0 commit comments