|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-10-28 18:48 UTC] fletch at pobox dot com
[2006-10-31 00:01 UTC] fletch at pobox dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 11:00:01 2025 UTC |
Description: ------------ All SELECTed values have the final character truncated. Version information from phpinfo(): PECL Module version: 1.0.1 $Id: pdo_sqlite.c,v 1.10.2.6 2006/01/01 12:50:12 sniper Exp $ SQLite Library: 3.3.6 Reproduce code: --------------- <?php $dbh = new PDO( 'sqlite::memory:' ); $dbh->query( 'CREATE TABLE "things" ( name VARCHAR NOT NULL )'); $dbh->query( 'INSERT INTO things VALUES ( "thing one" )'); foreach( $dbh->query( 'SELECT * FROM things' ) as $row ) { print_r( $row ); } $dbh = null; ?> Expected result: ---------------- Array ( [name] => thing one [0] => thing one ) Actual result: -------------- Array ( [name] => thing on [0] => thing on )