Skip to content

The SQL model cannot perform insertion into another table using queried data #1232

Answered by writebai2
writebai2 asked this question in Questions
Discussion options

You must be logged in to vote

I forget if this is the case with plain SQLAlchemy -- if so, you may have to expunge() them (or all with expunge_all()) from the current session before adding it to a different one...?

I solved this problem by using mapping to insert data instead. Thank you

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tiangolo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1019 on December 02, 2024 09:38.