Skip to content

Commit

Permalink
[5.3] Allow reserved words as table name in sqlite (#17293)
Browse files Browse the repository at this point in the history
* Allow reserved words as table name

* Update SQLiteGrammar.php
  • Loading branch information
lewisf2001uk authored and taylorotwell committed Jan 12, 2017
1 parent e480e17 commit e9e79cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function compileTableExists()
*/
public function compileColumnExists($table)
{
return 'pragma table_info('.str_replace('.', '__', $table).')';
return 'pragma table_info('.$this->wrapTable(str_replace('.', '__', $table)).')';
}

/**
Expand Down

0 comments on commit e9e79cc

Please sign in to comment.