Skip to content
Snippets Groups Projects
Commit 52a14a59 authored by Christoph Berg's avatar Christoph Berg 📡
Browse files

Adjust tests for changed mysql error messages.

(Closes: #1033836)
parent 3be0d5ea
No related branches found
No related tags found
No related merge requests found
Pipeline #528230 passed
postgresql-mysql-fdw (2.8.0-4) unstable; urgency=medium
* Adjust tests for changed mysql error messages. (Closes: #1033836)
-- Christoph Berg <myon@debian.org> Mon, 15 May 2023 15:11:37 +0200
postgresql-mysql-fdw (2.8.0-3) unstable; urgency=medium
* Upload for PostgreSQL 15.
......
......@@ -20,3 +20,25 @@
RAISE NOTICE 'failed to connect to MySQL: Unknown MySQL server host ''localhos''';
ELSE
RAISE NOTICE '%', SQLERRM;
--- a/expected/dml.out
+++ b/expected/dml.out
@@ -83,7 +83,7 @@ $$
BEGIN
INSERT INTO fdw126_ft2 VALUES(2, 'Two');
EXCEPTION WHEN others THEN
- IF SQLERRM LIKE '%SELECT command denied to user ''%''@''%'' for table ''student''' THEN
+ IF SQLERRM LIKE '%SELECT command denied to user ''%''@''%'' for table %student%' THEN
RAISE NOTICE E'failed to execute the MySQL query: \nUnknown database ''public''';
ELSE
RAISE NOTICE '%', SQLERRM;
--- a/sql/dml.sql
+++ b/sql/dml.sql
@@ -70,7 +70,7 @@ $$
BEGIN
INSERT INTO fdw126_ft2 VALUES(2, 'Two');
EXCEPTION WHEN others THEN
- IF SQLERRM LIKE '%SELECT command denied to user ''%''@''%'' for table ''student''' THEN
+ IF SQLERRM LIKE '%SELECT command denied to user ''%''@''%'' for table %student%' THEN
RAISE NOTICE E'failed to execute the MySQL query: \nUnknown database ''public''';
ELSE
RAISE NOTICE '%', SQLERRM;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment