cvs: php-src /ext/pdo/tests pdo_018.phpt

From: Date: Tue, 12 Jul 2005 02:38:43 +0000
Subject: cvs: php-src /ext/pdo/tests pdo_018.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-32870@lists.php.net to get a copy of this message
wez Mon Jul 11 22:38:43 2005 EDT Modified files: /php-src/ext/pdo/tests pdo_018.phpt Log: should always bind columns after execute. There're probably more of these to fix. http://cvs.php.net/diff.php/php-src/ext/pdo/tests/pdo_018.phpt?r1=1.9&r2=1.10&ty=u Index: php-src/ext/pdo/tests/pdo_018.phpt diff -u php-src/ext/pdo/tests/pdo_018.phpt:1.9 php-src/ext/pdo/tests/pdo_018.phpt:1.10 --- php-src/ext/pdo/tests/pdo_018.phpt:1.9 Fri Jul 8 23:52:41 2005 +++ php-src/ext/pdo/tests/pdo_018.phpt Mon Jul 11 22:38:39 2005 @@ -85,7 +85,6 @@ $stmt = $db->prepare('SELECT id FROM classtypes WHERE name=:cname'); $stmt->bindParam(':cname', $cname); -$stmt->bindColumn('id', $ctype); $ctypes = array(); @@ -94,6 +93,7 @@ $cname = get_class($obj); $ctype = NULL; /* set default for non stored class name */ $stmt->execute(); + $stmt->bindColumn('id', $ctype); $stmt->fetch(PDO_FETCH_BOUND); $ctypes[$cname] = $ctype; }

« previous php.cvs (#32870) next »