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

ignoring column defaults of db which are function calls issue #124 #144

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rmallah
Copy link
Contributor

@rmallah rmallah commented May 29, 2023

currently read_schema returns the default values of db in verbatim even if they are function calls. This causes attempts to insert the function call body as defaults in columns instead of the the value, which does not makes sense. The current fix returns undef for such column defaults. Additionally as a measure of caution it does not do the above in case the default has been handled in fix_default mapping.

…on#124

currently read_schema returns the default values of db in verbatim
even if they are function calls. This causes attempts to insert
the function call body as defaults in columns instead of the
the value, which does not makes sense. The current fix returns undef
for such column defaults. Additionally as a measure of caution it
does not do the above in case the default has been handled in
fix_default mapping.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants