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