Skip to content

Commit b6f69e3

Browse files
committed
fix: use modifying word in error message
1 parent 318ee16 commit b6f69e3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/pgduckdb_hooks.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ IsAllowedStatement(Query *query, bool throw_error) {
230230
if (query->rtable != NULL) {
231231
RangeTblEntry *resultRte = list_nth_node(RangeTblEntry, query->rtable, query->resultRelation - 1);
232232
if (!::IsDuckdbTable(resultRte->relid)) {
233-
elog(elevel, "DuckDB does not support modififying Postgres tables");
233+
elog(elevel, "DuckDB does not support modifying Postgres tables");
234234
return false;
235235
}
236236
}

test/pycheck/copy_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def test_copy_from_local(cur: Cursor, tmp_path: Path):
223223
# If that's not possible (e.g. due to parquet), then we throw a clear error
224224
with pytest.raises(
225225
psycopg.errors.InternalError,
226-
match="DuckDB does not support modififying Postgres tables",
226+
match="DuckDB does not support modifying Postgres tables",
227227
):
228228
cur.sql(
229229
f"COPY (INSERT INTO pg_table VALUES (1) RETURNING (id)) TO '{parquet_path}'"

0 commit comments

Comments
 (0)