1--TEST-- 2odbc_exec(): Basic test 3--EXTENSIONS-- 4odbc 5--SKIPIF-- 6<?php include 'skipif.inc'; ?> 7<?php 8 if ("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', 'bar'); 20odbc_exec($conn, 'foo'); 21 22odbc_exec($conn, '', ''); 23odbc_exec($conn, ''); 24 25odbc_exec($conn, 1, 1); 26odbc_exec($conn, 1); 27 28odbc_exec($conn, NULL, NULL); 29odbc_exec($conn, NULL); 30 31?> 32--EXPECTF-- 33Warning: odbc_exec(): Argument #3 must be of type int, string given in %s on line %d 34 35Warning: odbc_exec(): SQL error: %s in %s on line %d 36 37Warning: odbc_exec(): Argument #3 must be of type int, string given in %s on line %d 38 39Warning: odbc_exec(): SQL error: %s in %s on line %d 40 41Warning: odbc_exec(): SQL error: %s in %s on line %d 42 43Warning: odbc_exec(): SQL error: %s in %s on line %d 44 45Warning: odbc_exec(): SQL error: %s in %s on line %d 46 47Warning: odbc_exec(): SQL error: %s in %s on line %d 48