#25179 [Fbk->Csd]: sqlite appending one extra char at end of each table name

From: Date: Wed, 20 Aug 2003 20:06:20 +0000
Subject: #25179 [Fbk->Csd]: sqlite appending one extra char at end of each table name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46335@lists.php.net to get a copy of this message
ID: 25179 Updated by: mrobinso@php.net Reported By: mrobinso@php.net -Status: Feedback +Status: Closed Bug Type: SQLite related Operating System: RH-8.0 PHP Version: 4.3.3RC4 New Comment: Where's that damn crack pipe.... Previous Comments: ------------------------------------------------------------------------ [2003-08-20 11:40:31] wez@php.net Your script looks borked (are you using the correct quotes?). Also, the is the last letter is missing from your name in your email address? Are you sure you aren't suffering from some weird brain<->finger packet loss problem? ;-) ------------------------------------------------------------------------ [2003-08-20 11:01:39] mrobinso@php.net Description: ------------ The sqlite library is appending an extra character onto the end of any specified table name. For example, if I specify a table name of 'foo' for a query, sqlite looks for a table named 'fooo'. It takes the last character of the table name supplied, and appends an extra one of those chars onto the end of the table name. If I do a select and supply a table name of 'fo', sqlite will return data from the table 'foo'. Sqlite was installed with pear. Reproduce code: --------------- # The table 'foo' exists and has data in it. # returns data. if ($db = @sqlite_open('test.db', 0666, $sqliteerror)) { $result = sqlite_query($db,'SELECT * from "fo'); var_dump(sqlite_fetch_array($result)); } else { die ($sqliteerror); } # Changing the name to 'foo' returns a # 'no such table' error ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=25179&edit=1

« previous php.bugs (#46335) next »