To reproduce the issue for each function, comment in the respective block in TestGORM. run tests with the dialect set to "postgres" as there is dialect-specific SQL used to create the non-default schema.
I would expect that these two functions would use m.CurrentTable to table TablePrefix into account, but they do not. Explicitly adding the schema to the index name in the function argument makes these tests work, which confirms the cause.
… used to specify schema
Explain your user case and expected results
To reproduce the issue for each function, comment in the respective block in TestGORM. run tests with the dialect set to "postgres" as there is dialect-specific SQL used to create the non-default schema.
I would expect that these two functions would use m.CurrentTable to table TablePrefix into account, but they do not. Explicitly adding the schema to the index name in the function argument makes these tests work, which confirms the cause.