Skip to content

Commit

Permalink
Strip quotes from column name after splitting off prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
coleifer committed Mar 28, 2018
1 parent 67ceaf3 commit 427414b
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 @@ -5928,11 +5928,12 @@ def _initialize_columns(self):
self.fields = fields = [None] * self.ncols

for idx, description_item in enumerate(description):
column = description_item[0].strip('"')
column = description_item[0]
dot_index = column.find('.')
if dot_index != -1:
column = column[dot_index + 1:]

column = column.strip('"')
self.columns.append(column)
try:
raw_node = self.select[idx]
Expand Down

0 comments on commit 427414b

Please sign in to comment.