Ok, thank you. 

środa, 20 października 2021 o 19:05:46 UTC+2 Mike Bayer napisał(a):

> https://github.com/sqlalchemy/sqlalchemy/issues/7217
>
> On Wed, Oct 20, 2021, at 1:01 PM, Mike Bayer wrote:
>
> for the moment yes, because there is no ORM overlay for the insert() 
> construct.    the case below should be improved however.
>
> reliable way is to use the attributes:
>
> stmt = insert(A).values({A.id: 1, A.field: 3})
>
>
>
>
> On Wed, Oct 20, 2021, at 6:31 AM, Tomas Pavlovsky wrote:
>
> Hi,
>
> class A():
>  id = Column('object_id", Integer, primary_key=True)
>  field = Column(Integer, primary_key=True)
>
> insert(A).values(**{id:1, field:3})
>
> sqlalchemy.exc.CompileError: Unconsumed column names: id
>
> It is normal behavior or not?
> Thanks
>
>
> -- 
> 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+...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sqlalchemy/5dc957d1-e0b3-4f0a-8536-548694d87d0en%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/sqlalchemy/5dc957d1-e0b3-4f0a-8536-548694d87d0en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
>
>
> -- 
> 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+...@googlegroups.com.
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/sqlalchemy/e1f3d081-02b8-4a2a-8e1a-3f7d7b3b2ce9%40www.fastmail.com
>  
> <https://groups.google.com/d/msgid/sqlalchemy/e1f3d081-02b8-4a2a-8e1a-3f7d7b3b2ce9%40www.fastmail.com?utm_medium=email&utm_source=footer>
> .
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/928d7a6b-cd3c-4f90-b626-4585a154cfaen%40googlegroups.com.

Reply via email to