From:             geniuz at geniuz dot cz
Operating system: XP
PHP version:      5.2.2
PHP Bug Type:     PDO related
Bug description:  PDO don't read ODBC TEXT column

Description:
------------
I have column type TEXT.
When I read it over odbc_result, it works fine.
When I read it over PDO, column is empty.
More, all next readed columns after this column are empty too.
For example: SELECT ID, CSN, Spec FROM MYTABLE
When CSN column type is TEXT, I obtain empty data for CSN a Spec columns.
I have downloaded http://snaps.php.net/win32/php5.2-win32-latest.zip
before I send this bug.

Reproduce code:
---------------
if($sth = $pdo->query( "SELECT ID, CSN, Spec FROM MYTABLE" ))
{
        while( ($row = $sth->fetch(PDO::FETCH_NUM)) )
        {
                echo "ID:".$row[0]."<BR>";
                echo "CSN:".$row[1]."<BR>";
                echo "Spec:".$row[2]."<BR>";
        }
}


Expected result:
----------------
Not empty $row[1] and $row[2]

Actual result:
--------------
Empty $row[1] and $row[2]

-- 
Edit bug report at http://bugs.php.net/?id=41399&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41399&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41399&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41399&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=41399&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=41399&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=41399&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=41399&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=41399&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=41399&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=41399&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=41399&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=41399&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=41399&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41399&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=41399&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=41399&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=41399&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41399&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=41399&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=41399&r=mysqlcfg

Reply via email to