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

fix: Prefer: missing=default with DOMAIN defaults #2843

Merged
merged 1 commit into from
Jun 30, 2023

Conversation

steve-chavez
Copy link
Member

Closes #2840.

END AS column_default,|]
| otherwise = "pg_get_expr(ad.adbin, ad.adrelid)::text as column_default,"
END|]
| otherwise = [q|
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't get why this line is not covered in codecov. It runs when using postgrest-with-postgresql-9.6 postgrest-test-spec. I've double checked the test fails when removing it.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, code coverage only covers pg 15:

- name: Run coverage (IO tests and Spec tests against PostgreSQL 15)
run: postgrest-coverage
- name: Upload coverage to codecov
uses: codecov/[email protected]
with:
files: ./coverage/codecov.json

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted this on #1719 (comment)

@steve-chavez steve-chavez merged commit a17dd41 into PostgREST:main Jun 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Non-null domain types that have a default value are coerced to null
1 participant