From: gkrajci at arescorporation dot com Operating system: Windows NT PBMA-WB2 5.2 build 37 PHP version: 5.1.6 PHP Bug Type: PDO related Bug description: PDO Truncates Text from SQL Server Text Data Type Field
Description: ------------ When using PDO to retrieve text from a SQL Server text data type field the text is truncated when I display it on a Web page PDO Transcript length = 4096 (truncated) PEAR Transcript length = 6139(full text) Using SQL Server 2000 Reproduce code: --------------- $sql = "SELECT title AS VideoTitle, transcript_text AS TranscriptText FROM video WHERE video_id = 324"; $dbh = new PDO($pdo_dsn, $db_user, $db_password); $transcript_q = $dbh->query($sql); $transcript_rs = $transcript_q->fetch(); $pear_dsn = "$db_type://$db_user:[EMAIL PROTECTED]/$db_name"; require_once( 'DB.php' ); $db = DB::connect( $pear_dsn, true ); if ( DB::isError($db) ) die( $db->getMessage() ); $res = $db->query($sql); $row = $res->fetchRow(); Expected result: ---------------- The text in TranscriptText to be the text and the same length. Actual result: -------------- See Description for this bug report. -- Edit bug report at http://bugs.php.net/?id=38805&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=38805&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=38805&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=38805&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=38805&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=38805&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=38805&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=38805&r=needscript Try newer version: http://bugs.php.net/fix.php?id=38805&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=38805&r=support Expected behavior: http://bugs.php.net/fix.php?id=38805&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=38805&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=38805&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=38805&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=38805&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=38805&r=dst IIS Stability: http://bugs.php.net/fix.php?id=38805&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=38805&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=38805&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=38805&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=38805&r=mysqlcfg
