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! :)
The text was updated successfully, but these errors were encountered:
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.