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))'); }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php