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--
25resource(%d) of type (odbc result)
26bool(false)
27
28Deprecated: odbc_columnprivileges(): Passing null to parameter #3 ($schema) of type string is deprecated in %s on line %d
29
30Deprecated: odbc_columnprivileges(): Passing null to parameter #4 ($table) of type string is deprecated in %s on line %d
31
32Deprecated: odbc_columnprivileges(): Passing null to parameter #5 ($column) of type string is deprecated in %s on line %d
33resource(%d) of type (odbc result)
34bool(false)
35resource(%d) of type (odbc result)
36bool(false)
37