Skip to content

Commit

Permalink
Specify lower case column_name (fixes #20190) (#21037)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurenkt authored and taylorotwell committed Sep 6, 2017
1 parent 7fa5134 commit 345f7c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function compileTableExists()
*/
public function compileColumnListing()
{
return 'select column_name from information_schema.columns where table_schema = ? and table_name = ?';
return 'select column_name as `column_name` from information_schema.columns where table_schema = ? and table_name = ?';
}

/**
Expand Down

0 comments on commit 345f7c9

Please sign in to comment.