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

sqlparser: Track if original default value is a literal #13730

Merged

Commits on Aug 6, 2023

  1. sqlparser: Track if original default value is a literal

    We want to keep if the user explicitly specified an expression or
    something we treat as a literal, so we can serialize it back to the
    exact same format.
    
    This is because for example `now()` and `(now())` do have a semantic
    difference. The latter works as a default for `datetime(6)` with a
    precision, while the former does not and would need `now(6)` in the
    literal form.
    
    Signed-off-by: Dirkjan Bussink <[email protected]>
    dbussink committed Aug 6, 2023
    Configuration menu
    Copy the full SHA
    02e25e2 View commit details
    Browse the repository at this point in the history