Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQlite3-Driver Problem using table named "order" #84

Open
ghost opened this issue Oct 11, 2013 · 0 comments
Open

SQlite3-Driver Problem using table named "order" #84

ghost opened this issue Oct 11, 2013 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 11, 2013

Created by Knut Alboldt, 4th Dec 2012. (originally Lighthouse ticket #46):


I found a small glitch in the SQLite(3)-Driver (cakephp 2.2.3, ./lib/Cake/Model/Datasource/Database/Sqlite.php):

I named a table "order". When using "Console/cake bake" I*ve got an Error (sorry, can't remember the right msg now) at the line 475:

475: $indexes = $this->query('PRAGMA index_list(' . $table . ')');

Obviously, "order" is interpreted as a keyword here. Changed the line to

475: $indexes = $this->query('PRAGMA index_list("' . $table . '")');

and "bake" works.

Maybe you could check, if I'm right.

Thanks

Knut

@AD7six AD7six added the sqlite3 label Feb 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant