1--TEST--
2odbc_columnprivileges(): 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_columnprivileges($conn, '', '', '', ''));
15var_dump(odbc_fetch_row($result));
16
17var_dump($result = odbc_columnprivileges($conn, NULL, NULL, NULL, NULL));
18var_dump(odbc_fetch_row($result));
19
20var_dump($result = odbc_columnprivileges($conn, 'FOO', 'FOO', 'FOO', 'FOO'));
21var_dump(odbc_fetch_row($result));
22
23?>
24--EXPECTF--
25object(Odbc\Result)#%d (%d) {
26}
27bool(false)
28
29Deprecated: odbc_columnprivileges(): Passing null to parameter #3 ($schema) of type string is deprecated in %s on line %d
30
31Deprecated: odbc_columnprivileges(): Passing null to parameter #4 ($table) of type string is deprecated in %s on line %d
32
33Deprecated: odbc_columnprivileges(): Passing null to parameter #5 ($column) of type string is deprecated in %s on line %d
34object(Odbc\Result)#%d (%d) {
35}
36bool(false)
37object(Odbc\Result)#%d (%d) {
38}
39bool(false)
40