[PECL-CVS] [pecl-database-pdo_oci] pdo_oci_param_bool_fix: Test Correction
[email protected] (Sharad Chandran R)
| Newsgroups | php.pecl.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: Sharad Chandran R (sharadraju)
Date: 2026-01-06T01:51:01+05:30
Commit: https://github.com/php/pecl-database-pdo_oci/commit/1e0b7ee17ee32c6254b71d0b64a0c8c3cd7136b3
Raw diff: https://github.com/php/pecl-database-pdo_oci/commit/1e0b7ee17ee32c6254b71d0b64a0c8c3cd7136b3.diff
Test Correction
Changed paths:
M tests/pdo_oci_insert_boolean.phpt
Diff:
diff --git a/tests/pdo_oci_insert_boolean.phpt b/tests/pdo_oci_insert_boolean.phpt
index 1b42e8e..83fab5f 100644
--- a/tests/pdo_oci_insert_boolean.phpt
+++ b/tests/pdo_oci_insert_boolean.phpt
@@ -23,15 +23,8 @@ PDOTest::skip();
require_once(getenv('PDO_TEST_DIR').'/pdo_test.inc');
$db = PDOTest::factory();
-// Drop table if exists (ignore error if it doesn't exist)
-try {
- $db->exec("DROP TABLE test_bool");
-} catch (PDOException $e) {
- // Ignore
-}
-
// Create table
-$db->exec("CREATE TABLE test_bool (id NUMBER, bool_val BOOLEAN)");
+$db->exec("CREATE TABLE IF EXISTS test_bool (id NUMBER, bool_val BOOLEAN)");
// Insert true
$stmt = $db->prepare("INSERT INTO test_bool (id, bool_val) VALUES (1, :val)");