Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
missing check for batch mode in render for create_foreign_key. #315
Migrated issue, originally created by Ryan Lahfa (@OzVessalius)
In batch mode (for SQLite support), autogeneration doesn't work as expected with Foreign Key generation for example.
Look at autogenerate/render.py:245 function, it should add
Then, the auto-generated call isn't valid at the end.
A quick workaround would be to patch the code and check for batch_prefix in autogen_context.
If you need more information about that, please, let me know! :)
Michael Bayer (@zzzeek) wrote:
Thanks for reporting. please refer to the current master when reporting issues. All the render functions except for create_foreign_key are consulting the batch context and the test itself is also testing for the wrong call in test_autogen_composition.