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

warn for using unsupported 'RETURNING' clause in stead of ERROR #265

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
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 mysql_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -1701,7 +1701,7 @@ mysqlPlanForeignModify(PlannerInfo *root,
}

if (plan->returningLists)
ereport(ERROR,
ereport(WARNING,
(errcode(ERRCODE_FDW_UNABLE_TO_CREATE_EXECUTION),
errmsg("RETURNING is not supported by this FDW")));

Expand Down
1 change: 1 addition & 0 deletions mysql_fdw_pushdown.config
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ ROUTINE pg_catalog."numeric"(bigint)
ROUTINE pg_catalog."numeric"(integer)
ROUTINE pg_catalog."numeric"(double precision)
ROUTINE pg_catalog."numeric"(smallint)
OPERATOR pg_catalog.=(bigint,bigint)
OPERATOR pg_catalog.=(integer,integer)
OPERATOR pg_catalog.=(text,text)
OPERATOR pg_catalog.=(smallint,integer)
Expand Down