mirror of
https://github.com/php/php-src.git
synced 2024-11-24 10:24:11 +08:00
- SAB: #41996, Problem accessing Oracle ROWID (Martin Jansen)
This commit is contained in:
parent
9d4064afc0
commit
86a493f435
1
NEWS
1
NEWS
@ -280,6 +280,7 @@ PHP NEWS
|
||||
characters). (Jani)
|
||||
- Fixed bug #41997 (pdo_mysql: stored procedure call returning single rowset
|
||||
blocks future queries). (Johannes)
|
||||
- Fixed bug #41996 (Problem accessing Oracle ROWID). (Martin Jansen)
|
||||
- Fixed bug #41599 (setTime() fails after modify() is used). (Derick)
|
||||
- Fixed bug #41522 (PDO firebird driver returns null if it fails to connect).
|
||||
(Lars W)
|
||||
|
@ -557,7 +557,7 @@ static int oci_stmt_describe(pdo_stmt_t *stmt, int colno TSRMLS_DC) /* {{{ */
|
||||
|
||||
case SQLT_BIN:
|
||||
default:
|
||||
if (dtype == SQLT_DAT || dtype == SQLT_NUM
|
||||
if (dtype == SQLT_DAT || dtype == SQLT_NUM || dtype == SQLT_RDD
|
||||
#ifdef SQLT_TIMESTAMP
|
||||
|| dtype == SQLT_TIMESTAMP
|
||||
#endif
|
||||
|
20
ext/pdo_oci/tests/bug41996.phpt
Normal file
20
ext/pdo_oci/tests/bug41996.phpt
Normal file
@ -0,0 +1,20 @@
|
||||
--TEST--
|
||||
PDO OCI Bug #41996 (Problem accessing Oracle ROWID)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
/* $Id$ */
|
||||
if (!extension_loaded('pdo') || !extension_loaded('pdo_oci')) die('skip not loaded');
|
||||
require dirname(__FILE__).'/../../pdo/tests/pdo_test.inc';
|
||||
PDOTest::skip();
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
require 'ext/pdo/tests/pdo_test.inc';
|
||||
$db = PDOTest::test_factory('ext/pdo_oci/tests/common.phpt');
|
||||
|
||||
$stmt = $db->prepare('SELECT rowid FROM dual');
|
||||
$stmt->execute();
|
||||
$row = $stmt->fetch();
|
||||
var_dump(strlen($row[0]) > 0);
|
||||
--EXPECTF--
|
||||
bool(true)
|
Loading…
Reference in New Issue
Block a user