-
Couldn't load subscription status.
- Fork 8
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Description
The following code:
$conn = oci_connect('DB', 'PASSWORD', '172.17.0.1:51521/XEPDB1');
if (!$conn) {
$e = oci_error();
trigger_error(htmlentities($e['message'], ENT_QUOTES), E_USER_ERROR);
}
$stid = oci_parse($conn, 'SELECT * FROM table');
oci_execute($stid);
while ($row = oci_fetch_array($stid, OCI_ASSOC+OCI_RETURN_NULLS)) {
foreach ($row as $item) {
echo gettype($item) . ' | ';
}
}Resulted in this output:
string | object | string |
But I expected this output instead:
integer | object | integer |
Problem:
The integer columns are being converted to strings.
Using CAST is not an option.
Possible solution:
Something like PDO::ATTR_STRINGIFY_FETCHES available on de sqlserver pdo
PHP Version
PHP 8.1
Operating System
Ubuntu 20.04
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request