From: cagret at gmail dot com Operating system: Win xp pro PHP version: 5.3.1 PHP Bug Type: SQLite related Bug description: Sqlite3Result->columnType() always returns SQLITE3_NULL
Description: ------------ Sqlite3Result->columnType() always returns SQLITE3_NULL. Table structure: CREATE TABLE IF NOT EXISTS Test (Id int primary key, Name varchar(50)); Reproduce code: --------------- $query = sprintf('SELECT * FROM %s', $table); $result = $db->query($query); $columns = array(); $numcols = $result->numColumns(); for ($i = 0; $i < $numcols; $i++) { $colname = $result->columnName($i); $coltype = $result->columnType($i); } $coltype == 5 (SQLITE3_NULL) for each column. Expected result: ---------------- SQLITE3_INTEGER or SQLITE3_TEXT Actual result: -------------- SQLITE3_NULL -- Edit bug report at http://bugs.php.net/?id=50707&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50707&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50707&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50707&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50707&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50707&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50707&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50707&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50707&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50707&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50707&r=support Expected behavior: http://bugs.php.net/fix.php?id=50707&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50707&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50707&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50707&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50707&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50707&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50707&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50707&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50707&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50707&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50707&r=mysqlcfg