Skip to content

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

@JelteF

Description

@JelteF

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions