cvs: php-src(PHP_5_1) /ext/pdo/tests bug_34630.phpt

From: Date: Fri, 25 Nov 2005 03:24:32 +0000
Subject: cvs: php-src(PHP_5_1) /ext/pdo/tests bug_34630.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-35370@lists.php.net to get a copy of this message
wez Thu Nov 24 22:24:32 2005 EDT Modified files: (Branch: PHP_5_1) /php-src/ext/pdo/tests bug_34630.phpt Log: PDO support for LOBs in the postgres driver currently assumes bytea columns. http://cvs.php.net/diff.php/php-src/ext/pdo/tests/bug_34630.phpt?r1=1.1.2.3&r2=1.1.2.4&ty=u Index: php-src/ext/pdo/tests/bug_34630.phpt diff -u php-src/ext/pdo/tests/bug_34630.phpt:1.1.2.3 php-src/ext/pdo/tests/bug_34630.phpt:1.1.2.4 --- php-src/ext/pdo/tests/bug_34630.phpt:1.1.2.3 Sun Oct 30 21:07:38 2005 +++ php-src/ext/pdo/tests/bug_34630.phpt Thu Nov 24 22:24:32 2005 @@ -14,10 +14,13 @@ require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; $db = PDOTest::factory(); -$is_oci = $db->getAttribute(PDO::ATTR_DRIVER_NAME) == 'oci'; +$driver = $db->getAttribute(PDO::ATTR_DRIVER_NAME); +$is_oci = $driver == 'oci'; if ($is_oci) { $db->exec('CREATE TABLE test (id int NOT NULL PRIMARY KEY, val BLOB)'); +} else if ($driver == 'pgsql') { + $db->exec('CREATE TABLE test (id int NOT NULL PRIMARY KEY, val bytea)'); } else { $db->exec('CREATE TABLE test (id int NOT NULL PRIMARY KEY, val VARCHAR(256))'); }

« previous php.cvs (#35370) next »