Repository navigation
fix: evaluate function defaults before enum/string normalization - #12508
Conversation
commit: |
Code Review by Qodo
1. Issue test added under github-issues
|
|
@Cprakhar could you please take a look at Qodo's comments? Thanks :) |
|
@alumni Qodo's second point can be tackled in a separate PR, it is probably the same with cockroachdb as well |
well, I think Qodo might not be right on a first glance (hopefully we should have tests that prevent it), but if it is, it shouldn't be a separate PR. |
Closes #12492
Description of change
This change updates normalizeDefault for (Postgres, CockroachDB, and MySQL) so that function-based defaults are handled earlier in the method flow.
What changed
In
normalizeDefaultmethod: movedtypeof defaultValue === "function"branch above enum/string/number normalization branchesPull-Request Checklist
masterbranchFixes #12492tests/**.test.ts)docs/docs/**.md) (N/A)