[PECL-CVS] [pecl-database-pdo_oci] main: Remove the BOOLEAN datatype test as it requires separate fix
[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/4fbdfca8fedb7bd55ff5ebeaa35ed97fa45c28e7
Raw diff: https://github.com/php/pecl-database-pdo_oci/commit/4fbdfca8fedb7bd55ff5ebeaa35ed97fa45c28e7.diff
Remove the BOOLEAN datatype test as it requires separate fix
Changed paths:
D tests/pdo_oci_insert_boolean.phpt
Diff:
diff --git a/tests/pdo_oci_insert_boolean.phpt b/tests/pdo_oci_insert_boolean.phpt
deleted file mode 100644
index e1dfe96..0000000
--- a/tests/pdo_oci_insert_boolean.phpt
+++ /dev/null
@@ -1,65 +0,0 @@
---TEST--
-PDO_OCI: Insert BOOLEAN values into BOOLEAN column (Oracle 23ai+)
---EXTENSIONS--
-pdo
-pdo_oci
---SKIPIF--
-<?php
-require(getenv('PDO_TEST_DIR').'/pdo_test.inc');
-$db = PDOTest::factory();
-
-$version = $db->getAttribute(PDO::ATTR_SERVER_VERSION);
-preg_match('/^(\d+)\./', $version, $matches);
-$majorVersion = (int)$matches[1];
-if ($majorVersion < 23) {
- die('skip BOOLEAN type supported from Oracle Database 23ai');
-}
-
-PDOTest::skip();
-?>
---FILE--
-<?php
-
-require_once(getenv('PDO_TEST_DIR').'/pdo_test.inc');
-$db = PDOTest::factory();
-
-// Create table
-$db->exec("CREATE TABLE IF NOT EXISTS test_bool (id NUMBER, bool_val BOOLEAN)");
-
-// Insert true
-$stmt = $db->prepare("INSERT INTO test_bool (id, bool_val) VALUES (1, :val)");
-$val = true;
-$stmt->bindParam(':val', $val, PDO::PARAM_BOOL);
-$stmt->execute();
-
-// Insert false
-$stmt = $db->prepare("INSERT INTO test_bool (id, bool_val) VALUES (2, :val)");
-$val = false;
-$stmt->bindParam(':val', $val, PDO::PARAM_BOOL);
-$stmt->execute();
-
-// Fetch and dump
-$stmt = $db->query("SELECT id, bool_val FROM test_bool ORDER BY id");
-var_dump($stmt->fetchAll(PDO::FETCH_ASSOC));
-
-// Cleanup
-$db->exec("DROP TABLE test_bool");
-
-?>
---EXPECT--
-array(2) {
- [0]=>
- array(2) {
- ["id"]=>
- string(1) "1"
- ["bool_val"]=>
- string(1) "1"
- }
- [1]=>
- array(2) {
- ["id"]=>
- string(1) "2"
- ["bool_val"]=>
- string(1) "0"
- }
-}