-
Notifications
You must be signed in to change notification settings - Fork 59
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
INSERT errors when using default values #445
Comments
Okay I took a quick look at why this is happening. The relevant part of It uses the
Interestingly this is not a problem for places where postgres creates an
I can think of 2 possible ways of handling this:
I feel like 1 would be the cleanest, since it seems like we're calling the function with an incorrect type of query tree. I'm not sure if we can fix that though, because this field is already So 2 is probably easier. The main downside of 2 is that there might be an issue if |
Okay, a bit more info. The function that adds these Using the Looking at |
What happens?
INSERT errors when using default values because
pgduckdb_get_querydef()
results in invalid SQL queryTo Reproduce
throws error
because
pgduckdb_get_querydef()
returnsOS:
Linux
pg_duckdb Version (if built from source use commit hash):
0.1.0
Postgres Version (if built from source use commit hash):
17.0
Hardware:
No response
Full Name:
Cheng Chen
Affiliation:
Mooncake Labs
What is the latest build you tested with? If possible, we recommend testing with the latest nightly build.
I have tested with a stable release
Did you include all relevant data sets for reproducing the issue?
Not applicable - the reproduction does not require a data set
Did you include all code required to reproduce the issue?
Did you include all relevant configuration (e.g., CPU architecture, Linux distribution) to reproduce the issue?
The text was updated successfully, but these errors were encountered: