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