We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Below, I show a simple example. The generated SQL has a difference in the "" around the field, but in the docs it is showed as equivalent.
What is the proper use case for these features ?
from pypika import Table, Query, Field, Parameter shops = Table("shops") first_query = Query.from_(shops).select( Field(shops.id, 'identification') ).where( shops.id == Parameter("%(shop_id)s") ) # SELECT ""id"" "identification" FROM "shops" WHERE "id"=%(shop_id)s second_query = Query.from_(shops).select( shops.id.as_('identification') ).where( shops.id == Parameter("%(shop_id)s") ) # SELECT "id" "identification" FROM "shops" WHERE "id"='%(shop_id)s' assert first_query == second_query print(first_query, second_query)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Below, I show a simple example. The generated SQL has a difference in the "" around the field, but in the docs it is showed as equivalent.
What is the proper use case for these features ?
The text was updated successfully, but these errors were encountered: