xref: /php-src/ext/odbc/tests/odbc_exec_001.phpt (revision 8726ae06)
1--TEST--
2odbc_exec(): Basic test
3--EXTENSIONS--
4odbc
5--SKIPIF--
6<?php
7include 'skipif.inc';
8if ("unixODBC" != ODBC_TYPE) {
9    die("skip ODBC_TYPE != unixODBC");
10}
11?>
12--FILE--
13<?php
14
15include 'config.inc';
16
17$conn = odbc_connect($dsn, $user, $pass);
18
19odbc_exec($conn, 'foo');
20
21odbc_exec($conn, '');
22
23odbc_exec($conn, 1);
24
25?>
26--EXPECTF--
27Warning: odbc_exec(): SQL error: %s in %s on line %d
28
29Warning: odbc_exec(): SQL error: %s in %s on line %d
30