You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After looking inside this object, it became clear, that it was not creating any columns. So, the generated query was: INSERT INTO project_interviewer () VALUES ().
I have made this to work with:
table = Table(fixture['table'], metadata,
autoload=True, autoload_with=db.engine)
for record in fixture['records']:
# there was an issue 'default engine does not support multi-line inserts':
conn.execute(table.insert(), record)
Maybe I have missed something?
The text was updated successfully, but these errors were encountered:
I have faced an issue with Flask's
db.Table
. Here's my setup:Now I am trying to load project from the fixtures:
It was not loading. After some digging I have found out that the issue was here:
After looking inside this object, it became clear, that it was not creating any columns. So, the generated query was:
INSERT INTO project_interviewer () VALUES ()
.I have made this to work with:
Maybe I have missed something?
The text was updated successfully, but these errors were encountered: