cvs: pecl /pdo/tests pdo_024.inc /pdo_mysql/tests pdo_024.phpt /pdo_pgsql/tests pdo_024.phpt /pdo_sqlite/tests pdo_024.phpt

From: Date: Thu, 24 Mar 2005 12:31:37 +0000
Subject: cvs: pecl /pdo/tests pdo_024.inc /pdo_mysql/tests pdo_024.phpt /pdo_pgsql/tests pdo_024.phpt /pdo_sqlite/tests pdo_024.phpt
Groups: php.pecl.cvs 
Request: Send a blank email to pecl-cvs+get-2892@lists.php.net to get a copy of this message
helly Thu Mar 24 07:31:37 2005 EDT Added files: /pecl/pdo/tests pdo_024.inc /pecl/pdo_mysql/tests pdo_024.phpt /pecl/pdo_pgsql/tests pdo_024.phpt /pecl/pdo_sqlite/tests pdo_024.phpt Log: - Add new test http://cvs.php.net/co.php/pecl/pdo/tests/pdo_024.inc?r=1.1&p=1 Index: pecl/pdo/tests/pdo_024.inc +++ pecl/pdo/tests/pdo_024.inc <?php # vim:ft=php require_once('pdo.inc'); set_sql('create', 'create table test (id int, name varchar(10))'); set_sql('insert', 'insert into test (id, name) values(0, :name)'); set_sql('select', 'select name from test where id=0'); $DB->query($SQL['create']); $stmt = $DB->prepare($SQL['insert']); $name = NULL; $before_bind = $name; $stmt->bindParam(':name', $name); if ($name !== $before_bind) { echo "bind: fail\n"; } else { echo "bind: success\n"; } var_dump($stmt->execute()); var_dump($DB->query($SQL['select'])->fetchSingle()); ?> http://cvs.php.net/co.php/pecl/pdo_mysql/tests/pdo_024.phpt?r=1.1&p=1 Index: pecl/pdo_mysql/tests/pdo_024.phpt +++ pecl/pdo_mysql/tests/pdo_024.phpt --TEST-- PDO_MySQL: Bind does not convert NULL --SKIPIF-- <?php # vim:ft=php require_once('skipif.inc'); ?> --FILE-- <?php require_once('connection.inc'); require_once('prepare.inc'); require_once($PDO_TESTS . 'pdo_024.inc'); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- bind: success bool(true) NULL ===DONE=== http://cvs.php.net/co.php/pecl/pdo_pgsql/tests/pdo_024.phpt?r=1.1&p=1 Index: pecl/pdo_pgsql/tests/pdo_024.phpt +++ pecl/pdo_pgsql/tests/pdo_024.phpt --TEST-- PDO_PGSQL: Bind does not convert NULL --SKIPIF-- <?php # vim:ft=php require_once('skipif.inc'); ?> --FILE-- <?php require_once('connection.inc'); require_once('prepare.inc'); require_once($PDO_TESTS . 'pdo_024.inc'); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- bind: success bool(true) NULL ===DONE=== http://cvs.php.net/co.php/pecl/pdo_sqlite/tests/pdo_024.phpt?r=1.1&p=1 Index: pecl/pdo_sqlite/tests/pdo_024.phpt +++ pecl/pdo_sqlite/tests/pdo_024.phpt --TEST-- PDO_SQLite: Bind does not convert NULL --SKIPIF-- <?php # vim:ft=php require_once('skipif.inc'); ?> --FILE-- <?php require_once('connection.inc'); require_once('prepare.inc'); require_once($PDO_TESTS . 'pdo_024.inc'); ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- bind: success bool(true) NULL ===DONE===

« previous php.pecl.cvs (#2892) next »