[PECL-CVS] [pecl-database-pdo_oci] main: Test Correction

[email protected] (Sharad Chandran R)
Newsgroups php.pecl.cvs
Message-ID <[email protected]>
Author: Sharad Chandran R (sharadraju)
Date: 2026-01-06T10:19:31+05:30

Commit: https://github.com/php/pecl-database-pdo_oci/commit/dff809c771e84ab1ec1b8ed980a25f70aa840911
Raw diff: https://github.com/php/pecl-database-pdo_oci/commit/dff809c771e84ab1ec1b8ed980a25f70aa840911.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)");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.