diff options
author | Matteo Beccati <mbeccati@php.net> | 2013-06-19 11:46:11 +0200 |
---|---|---|
committer | Matteo Beccati <mbeccati@php.net> | 2013-06-19 11:48:03 +0200 |
commit | c666239265048abd3cc0b2c48493a5db1eacc28e (patch) | |
tree | e17c95acf6c1cbdb57e63a5bedeebd09fc4386e6 /ext/pdo_pgsql/tests | |
parent | 25e9aa6b0a86b2b3b098949b0fe866a5edeff02f (diff) | |
download | php-git-c666239265048abd3cc0b2c48493a5db1eacc28e.tar.gz |
Fixed bug #65047 (Test skip on client / server version)
Diffstat (limited to 'ext/pdo_pgsql/tests')
-rw-r--r-- | ext/pdo_pgsql/tests/bug46274.phpt | 5 | ||||
-rw-r--r-- | ext/pdo_pgsql/tests/bug46274_2.phpt | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/ext/pdo_pgsql/tests/bug46274.phpt b/ext/pdo_pgsql/tests/bug46274.phpt index c34839ad43..8a85c9fe0c 100644 --- a/ext/pdo_pgsql/tests/bug46274.phpt +++ b/ext/pdo_pgsql/tests/bug46274.phpt @@ -14,6 +14,11 @@ $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt'); $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, true); +try { + $db->query("SET bytea_output = 'escape'"); +} catch (Exception $e) { +} + $db->query('CREATE TABLE test_one_blob (id SERIAL NOT NULL, blob1 BYTEA)'); $stmt = $db->prepare("INSERT INTO test_one_blob (blob1) VALUES (:foo)"); diff --git a/ext/pdo_pgsql/tests/bug46274_2.phpt b/ext/pdo_pgsql/tests/bug46274_2.phpt index eb675afe9e..317160c37a 100644 --- a/ext/pdo_pgsql/tests/bug46274_2.phpt +++ b/ext/pdo_pgsql/tests/bug46274_2.phpt @@ -14,6 +14,11 @@ $db = PDOTest::test_factory(dirname(__FILE__) . '/common.phpt'); $db->setAttribute(PDO::ATTR_STRINGIFY_FETCHES, false); +try { + $db->query("SET bytea_output = 'escape'"); +} catch (Exception $e) { +} + $db->query('CREATE TABLE test_one_blob (id SERIAL NOT NULL, blob1 BYTEA)'); $stmt = $db->prepare("INSERT INTO test_one_blob (blob1) VALUES (:foo)"); |