Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pgduckdb_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ IsAllowedStatement(Query *query, bool throw_error) {
if (query->rtable != NULL) {
RangeTblEntry *resultRte = list_nth_node(RangeTblEntry, query->rtable, query->resultRelation - 1);
if (!::IsDuckdbTable(resultRte->relid)) {
elog(elevel, "DuckDB does not support modififying Postgres tables");
elog(elevel, "DuckDB does not support modifying Postgres tables");
return false;
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/pycheck/copy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def test_copy_from_local(cur: Cursor, tmp_path: Path):
# If that's not possible (e.g. due to parquet), then we throw a clear error
with pytest.raises(
psycopg.errors.InternalError,
match="DuckDB does not support modififying Postgres tables",
match="DuckDB does not support modifying Postgres tables",
):
cur.sql(
f"COPY (INSERT INTO pg_table VALUES (1) RETURNING (id)) TO '{parquet_path}'"
Expand Down
Loading