Skip to content

Commit 0ecddba

Browse files
committed
Try to fix tests
1 parent 156cf57 commit 0ecddba

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

ext/odbc/tests/odbc_columns_001.phpt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ var_dump(odbc_fetch_row($result));
1414

1515
var_dump($result = odbc_columns($conn));
1616
var_dump(odbc_fetch_row($result));
17+
var_dump(odbc_free_result($result));
1718

1819
var_dump($result = odbc_columns($conn, NULL, NULL, NULL, NULL));
1920
var_dump(odbc_fetch_row($result));
21+
var_dump(odbc_free_result($result));
2022

2123
var_dump($result = odbc_columns($conn, 'FOO', 'FOO', 'FOO', 'FOO'));
2224
var_dump(odbc_fetch_row($result));
@@ -26,6 +28,10 @@ var_dump(odbc_fetch_row($result));
2628
resource(%d) of type (odbc result)
2729
bool(false)
2830
resource(%d) of type (odbc result)
29-
bool(false)
31+
bool(true)
32+
bool(true)
33+
resource(%d) of type (odbc result)
34+
bool(true)
35+
bool(true)
3036
resource(%d) of type (odbc result)
3137
bool(false)

ext/odbc/tests/odbc_tables_001.phpt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,22 @@ var_dump(odbc_fetch_row($result));
1414

1515
var_dump($result = odbc_tables($conn));
1616
var_dump(odbc_fetch_row($result));
17+
var_dump(odbc_free_result($result));
1718

1819
var_dump($result = odbc_tables($conn, NULL, NULL, NULL, NULL));
1920
var_dump(odbc_fetch_row($result));
21+
var_dump(odbc_free_result($result));
2022

2123
var_dump($result = odbc_tables($conn, 'FOO', 'FOO', 'FOO', 'FOO'));
2224
var_dump(odbc_fetch_row($result));
2325

24-
2526
?>
2627
--EXPECTF--
2728
resource(%d) of type (odbc result)
2829
bool(false)
2930
resource(%d) of type (odbc result)
30-
bool(false)
31+
bool(true)
32+
resource(%d) of type (odbc result)
33+
bool(true)
3134
resource(%d) of type (odbc result)
3235
bool(false)

0 commit comments

Comments
 (0)