Skip to content

Commit

Permalink
Quote table name.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Aug 14, 2014
1 parent 394795c commit bb48ca3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion peewee.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,8 @@ def _parse_sql(self, node, alias_map, conv):
def _parse_field(self, node, alias_map, conv):
if alias_map:
sql = '.'.join((
alias_map[node.model_class], self.quote(node.db_column)))
self.quote(alias_map[node.model_class]),
self.quote(node.db_column)))
else:
sql = self.quote(node.db_column)
return sql, []
Expand Down

0 comments on commit bb48ca3

Please sign in to comment.