models._database.execute_sql( """ INSERT INTO artifactsubjecttag (artifact_id, subject_id) SELECT artifact.id, artifactsubject.id FROM artifact JOIN artifactsubject ON artifact.art_id == (?) AND artifactsubject.name IN (?) """, (art_id, ["foo","bar"]) )
InterfaceError: Error binding parameter 1 - probably unsupported type.
During handling of the above exception, another exception occurred:
My first question is, why You even need to execute the "custom query". There is already method implemented for what you want to do
And it's called "insert_from".
--
You received this message because you are subscribed to the Google Groups "peewee-orm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to peewee-orm+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/peewee-orm/e7f5fbfe-09f7-418f-aa05-953ef1b9323c%40googlegroups.com.