sqlboiler
sqlboiler copied to clipboard
Model tests ignore disabled `sslmode` (sqlcmd -C)
What version of SQLBoiler are you using (sqlboiler --version
)?
SQLBoiler v4.16.2
What is your database and version (eg. Postgresql 10)
Microsoft SQL Server 16.0.1000
If this happened at generation time what was the full SQLBoiler command you used to generate your models? (if not applicable leave blank)
If this happened at runtime what code produced the issue? (if not applicable leave blank)
go test ./models -test.config "../sqlboiler.toml"
What is the output of the command above with the -d
flag added to it? (Provided you are comfortable sharing this, it contains a blueprint of your schema)
Doesn't apply.
Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)
Doesn't apply.
Further information. What did you do, what did you expect?
If I run the tests, the generated sqlcmd
command gets executed without the -C
flag thus not trusting the server certificate without validation.
The sslmode = "disable"
line exists in my sqlboiler.toml
but the generated test function createTestDB
is ignoring the sslmode config entry. Model generation works fine with my sqlboiler.toml
config and disabled sslmode
.