-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
SQL Server Bug v2.6.1.beta and v.2.5.0 - Default values overwritten to NULL #8443
Comments
@leoalves thanks for the bug report! We'll triage this and get back to you with any questions or updates soon. |
We've flagged this as an urgent bug, but we suspect there's a fix already on the main branch awaiting release. We'll regression test it, release a patch and keep this issue updated once it's available. Until then, here's the as-yet-unreleased change we think resolves it, which you can access early if needed: |
I've just hit the same bug using Hasura Cloud. Unfortunately this is a big blocker :/ |
This will be fixed in release v2.6.1 going out today. I'll update here once it's available. |
hey folks, thank you again for your patience. Confirming the fix for this bug is now available on v2.6.1. Please comment here or reopen the issue if any problems. |
Just tested. It's working in v2.6.1. And the |
Version Information
Server Version: v2.5.0 and v.2.6.beta
What is the expected behaviour?
Hasura is generating queries with NULL values, instead of omitting the column. This overwrites default values set into the fields or generates constraint validation errors for non-null fields.
How to reproduce the issue?
name
fieldNULL
Can you identify the location in the source code where the problem exists?
I believe this merged pull request is responsible for this issue
92ab937#diff-d79e7a125fc4aff3fef93e498097bd00b33e8eee54a98be0d8bd20c2ddfef52bL28-L29
If you compare the
VALUES
from the generated query you can see that in the previous version only one value is passed. In the new one all other fields are set to NULL.The text was updated successfully, but these errors were encountered: