Annotation of embedaddon/php/ext/odbc/tests/odbc_exec_001.phpt, revision 1.1
1.1 ! misho 1: --TEST--
! 2: odbc_exec(): Basic test
! 3: --SKIPIF--
! 4: <?php include 'skipif.inc'; ?>
! 5: --FILE--
! 6: <?php
! 7:
! 8: include 'config.inc';
! 9:
! 10: $conn = odbc_connect($dsn, $user, $pass);
! 11:
! 12: odbc_exec($conn, 'foo', 'bar');
! 13: odbc_exec($conn, 'foo');
! 14:
! 15: odbc_exec($conn, '', '');
! 16: odbc_exec($conn, '');
! 17:
! 18: odbc_exec($conn, 1, 1);
! 19: odbc_exec($conn, 1);
! 20:
! 21: odbc_exec($conn, NULL, NULL);
! 22: odbc_exec($conn, NULL);
! 23:
! 24: ?>
! 25: --EXPECTF--
! 26: Warning: odbc_exec() expects parameter 3 to be long, %unicode_string_optional% given in %s on line %d
! 27:
! 28: Warning: odbc_exec(): SQL error: %s in %s on line %d
! 29:
! 30: Warning: odbc_exec() expects parameter 3 to be long, %unicode_string_optional% given in %s on line %d
! 31:
! 32: Warning: odbc_exec(): SQL error: %s in %s on line %d
! 33:
! 34: Warning: odbc_exec(): SQL error: %s in %s on line %d
! 35:
! 36: Warning: odbc_exec(): SQL error: %s in %s on line %d
! 37:
! 38: Warning: odbc_exec(): SQL error: %s in %s on line %d
! 39:
! 40: Warning: odbc_exec(): SQL error: %s in %s on line %d
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>