From 92af2b61945f39e0ba4e4d4ad1d3d01a856c534e Mon Sep 17 00:00:00 2001 From: Marcus Boerger Date: Thu, 10 Mar 2005 17:55:36 +0000 Subject: [PATCH] - Update tests --- ext/pdo/tests/pdo_018.inc | 2 ++ ext/pdo_mysql/tests/pdo_018.phpt | 2 +- ext/pdo_pgsql/tests/pdo_018.phpt | 2 +- ext/pdo_sqlite/tests/pdo_018.phpt | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ext/pdo/tests/pdo_018.inc b/ext/pdo/tests/pdo_018.inc index cecfc216f8..ed8c17f841 100755 --- a/ext/pdo/tests/pdo_018.inc +++ b/ext/pdo/tests/pdo_018.inc @@ -68,6 +68,8 @@ set_sql('select3', 'SELECT classtypes.name AS name, test.val AS val FROM test LE set_sql('select4', 'SELECT COUNT(*) FROM test LEFT JOIN classtypes ON test.classtype=classtypes.id WHERE (classtypes.id IS NULL OR classtypes.id > 0)'); set_sql('select5', 'SELECT classtypes.name AS name, test.val AS val FROM test LEFT JOIN classtypes ON test.classtype=classtypes.id WHERE (classtypes.id IS NULL OR classtypes.id > 0)'); +$DB->setAttribute(PDO_ATTR_ERRMODE, PDO_ERRMODE_EXCEPTION); + echo "===INIT===\n"; $DB->exec($SQL['create1']); var_dump($DB->exec($SQL['insert1'])); diff --git a/ext/pdo_mysql/tests/pdo_018.phpt b/ext/pdo_mysql/tests/pdo_018.phpt index 7155216c93..2a77a0a77c 100755 --- a/ext/pdo_mysql/tests/pdo_018.phpt +++ b/ext/pdo_mysql/tests/pdo_018.phpt @@ -58,7 +58,7 @@ array(4) { string(144) "a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}" } ===FAILURE=== -Exception:Class stdClass cannot be unserialized +Exception:SQLSTATE[HY000]: General error: cannot unserialize class ===COUNT=== string(1) "3" ===DATABASE=== diff --git a/ext/pdo_pgsql/tests/pdo_018.phpt b/ext/pdo_pgsql/tests/pdo_018.phpt index bfb4bb85b8..250bdaa4d2 100755 --- a/ext/pdo_pgsql/tests/pdo_018.phpt +++ b/ext/pdo_pgsql/tests/pdo_018.phpt @@ -58,7 +58,7 @@ array(4) { string(144) "a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}" } ===FAILURE=== -Exception:Class stdClass cannot be unserialized +Exception:SQLSTATE[HY000]: General error: cannot unserialize class ===COUNT=== int(3) ===DATABASE=== diff --git a/ext/pdo_sqlite/tests/pdo_018.phpt b/ext/pdo_sqlite/tests/pdo_018.phpt index 8a7339f983..8fd5d1f267 100755 --- a/ext/pdo_sqlite/tests/pdo_018.phpt +++ b/ext/pdo_sqlite/tests/pdo_018.phpt @@ -58,7 +58,7 @@ array(4) { string(144) "a:4:{s:7:"BasePub";s:13:"DerivedPublic";s:7:"BasePro";s:16:"DerivdeProtected";s:10:"DerivedPub";s:6:"Public";s:10:"DerivedPro";s:9:"Protected";}" } ===FAILURE=== -Exception:Class stdClass cannot be unserialized +Exception:SQLSTATE[HY000]: General error: cannot unserialize class ===COUNT=== string(1) "3" ===DATABASE=== -- 2.50.1