Skip to content

Commit 1d5f280

Browse files
committed
Fix tests
1 parent adab58b commit 1d5f280

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/select_tests.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1258,8 +1258,8 @@ TEST(WindowFunctions) {
12581258
TEST(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);
@@ -1268,7 +1268,7 @@ TEST(FunctionSchema) {
12681268
ASSERT_STREQ(stmt->selectList->at(0)->name, "uuid");
12691269
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");

0 commit comments

Comments
 (0)