Skip to content

Commit

Permalink
If its not int it must be a column
Browse files Browse the repository at this point in the history
This should solve #189
  • Loading branch information
tony13tv authored and nesdis committed Mar 25, 2021
1 parent ca44c22 commit a33aea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions djongo/sql2mongo/sql_tokens.py
Expand Up @@ -38,7 +38,7 @@ def tokens2sql(token: Token,
try:
int(token[0][1].value)
except ValueError:
raise
yield SQLIdentifier(token[0][1], query)
else:
yield SQLConstIdentifier(token, query)
elif isinstance(token[0], Function):
Expand Down Expand Up @@ -410,4 +410,4 @@ class SQLColumnConstraint(SQLColumnDef):
ORDER_BY_MAP = {
'ASC': ASCENDING,
'DESC': DESCENDING
}
}

1 comment on commit a33aea3

@richardoey
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When this update will be applied?
When is the next version release date?

Please sign in to comment.