>> Why is the expression “func.count(Address.id) > literal_column("2")”
>> not referenced there?
>
> there's no reason to refer to this, literal values should be passed as
> bound parameters unless there is some reason they shouldn't.

Can this information be confusing?


> again there is no reason for the asterisk to render in the text unless
> you are using the text in some other way besides executing it.

Do we stumble on different expectations for the usage of bind parameters?
https://docs.sqlalchemy.org/en/13/core/tutorial.html#operators

Is there a need for an adjusted SQL coding style?


> use literal_column('*') if you prefer.

I would prefer to get my query to work also without this function call.
But it seems that your programming interface contains a requirement
for such a data conversion.

Did the Python decorator “compiles” take care of this detail?

Regards,
Markus

-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at https://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to