xref: /PHP-8.3/ext/odbc/tests/odbc_tables_001.phpt (revision b5a14e6c)
1--TEST--
2odbc_tables(): Basic test
3--EXTENSIONS--
4odbc
5--SKIPIF--
6<?php include 'skipif.inc'; ?>
7--FILE--
8<?php
9
10include 'config.inc';
11
12$conn = odbc_connect($dsn, $user, $pass);
13
14var_dump($result = odbc_tables($conn, '', '', '', ''));
15var_dump(odbc_fetch_row($result));
16
17var_dump($result = odbc_tables($conn));
18var_dump(odbc_fetch_row($result));
19var_dump(odbc_free_result($result));
20
21var_dump($result = odbc_tables($conn, NULL, NULL, NULL, NULL));
22var_dump(odbc_fetch_row($result));
23var_dump(odbc_free_result($result));
24
25var_dump($result = odbc_tables($conn, 'FOO', 'FOO', 'FOO', 'FOO'));
26var_dump(odbc_fetch_row($result));
27
28?>
29--EXPECTF--
30resource(%d) of type (odbc result)
31bool(false)
32resource(%d) of type (odbc result)
33bool(true)
34bool(true)
35resource(%d) of type (odbc result)
36bool(true)
37bool(true)
38resource(%d) of type (odbc result)
39bool(false)
40