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

DuckDB errors converted to PG error always report the same source location #523

Open
JelteF opened this issue Jan 9, 2025 · 0 comments
Open
Labels
bug Something isn't working developer experience Improves our own lives

Comments

@JelteF
Copy link
Collaborator

JelteF commented Jan 9, 2025

Description

\set VERBOSITY verbose
select * from duckdb.raw_query('aaaaa');
ERROR:  XX000: (PGDuckDB/pgduckdb_raw_query) Parser Error: syntax error at or near "aaaaa"
LINE 1: aaaaa
        ^
LOCATION:  __CPPFunctionGuard__, cpp_wrapper.hpp:28
Time: 9.314 ms

It would be great if this could report the source location that the duckdb error originated from (e.g. by extracting it from the stack trace)

@JelteF JelteF added bug Something isn't working developer experience Improves our own lives labels Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working developer experience Improves our own lives
Projects
None yet
Development

No branches or pull requests

1 participant