Closed davidsulc closed 5 years ago
Hey @davidsulc,
I believe the proper way to use a schema prefix is to use the @schema_prefix
attribute in your schema/2
definition.
I suspect the way you're doing it now is creating a table with a literal "dot" in its name.
Happy to dig in more if I'm mistaken. :)
Apologies: I was indeed mistaken in how to handle Postgres schemas via Ecto (still not quite sure how I missed that...), and am closing this. Thanks for your work on Honeydew!
hey no worries, feel free to open a new issue if you run into anything else, happy to help. :)
Unless the table name is quoted, postgrex will fail with an
undefined_table
errorI have a prefixed schema: "structured.companies" (
create table("structured.companies") do ...
,schema "structured.companies" do ...
).Upon application startup, the current Honeydew code fails with:
Reproduction in iex:
Same query, with quoted table name:
Testing
I'm not sure how to proceed to add a regression test for this (assuming this is indeed a proper fix).
Running the current test suite yields 5 failures, but those failures are also present without the above code change (i.e. they don't seem related to the patch).