From:             vicrry at yahoo dot com dot hk
Operating system: CentOS
PHP version:      5.4.8
Package:          PDO related
Bug Type:         Bug
Bug description:PDO_MYSQL ignores PDO::FETCH_ORI_ABS in PDOStatement::fetch()

Description:
------------
When fetching with PDO::FETCH_ORI_ABS from MySQL with
PDOStatement::fetch(), the 
driver silently swallows the options and work as if I passed
PDO::FETCH_ORI_NEXT.

Test script:
---------------
$stmt = $pdo->prepare('SELECT * FROM table', array(
  PDO::ATTR_CURSOR => PDO::CURSOR_SCROLL
));

$stmt->execute();

$row = $stmt->fetch(PDO::FETCH_NUM, PDO::FETCH_ORI_ABS, 5);

Expected result:
----------------
The sixth row returned.

Actual result:
--------------
The first row returned.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=63466&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=63466&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=63466&r=trysnapshot53
Try a snapshot (trunk):     
https://bugs.php.net/fix.php?id=63466&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=63466&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=63466&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=63466&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=63466&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=63466&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=63466&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=63466&r=notwrong
Not enough info:            
https://bugs.php.net/fix.php?id=63466&r=notenoughinfo
Submitted twice:            
https://bugs.php.net/fix.php?id=63466&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=63466&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63466&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=63466&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=63466&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=63466&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63466&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=63466&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=63466&r=mysqlcfg

Reply via email to