Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

types.NullDecimal error in generated tests in v4.14.0 #1234

Open
rajaiswal opened this issue Jan 8, 2023 · 0 comments
Open

types.NullDecimal error in generated tests in v4.14.0 #1234

rajaiswal opened this issue Jan 8, 2023 · 0 comments
Labels

Comments

@rajaiswal
Copy link

If you're having a generation problem please answer these questions before submitting your issue. Thanks!

What version of SQLBoiler are you using (sqlboiler --version)?

v4.14.0

What is your database and version (eg. Postgresql 10)

postgres:12.2-alpine

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)

SQLBoiler generated tests

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)

Please provide a relevant database schema so we can replicate your issue (Provided you are comfortable sharing this)

Further information. What did you do, what did you expect?

Similar to #607, some of the generated tests are erroring out with pq: encode: unknown type for types.NullDecimal. Followed instructions on https://github.com/volatiletech/sqlboiler/#diagnosing-problems to pin ericlargergren/decimal version to v0.0.0-20181231230500-73749d4874d5 which worked up till SQLBoiler v4.13.0. But seems like SQLBoiler v4.14.0 pins that library to a newer version v0.0.0-20211103172832-aca2edc11f73 which brings back the error.

@rajaiswal rajaiswal changed the title types.NullDecimal error in generated tests in v4.14.4 types.NullDecimal error in generated tests in v4.14.0 Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants