From 8912bbb4e2ca53e8fe72c2a4b4b76dc8ef778f09 Mon Sep 17 00:00:00 2001 From: Jeevan Chalke Date: Mon, 3 Aug 2020 15:49:29 +0530 Subject: [PATCH] Stamp 2.5.4. --- expected/select.out | 7 +++++++ mysql_fdw.c | 4 ++-- sql/select.sql | 3 +++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/expected/select.out b/expected/select.out index dc8bc60..4a53674 100644 --- a/expected/select.out +++ b/expected/select.out @@ -11,6 +11,13 @@ CREATE SERVER mysql_svr FOREIGN DATA WRAPPER mysql_fdw OPTIONS (host :MYSQL_HOST, port :MYSQL_PORT); CREATE USER MAPPING FOR PUBLIC SERVER mysql_svr OPTIONS (username :MYSQL_USER_NAME, password :MYSQL_PASS); +-- Check version +SELECT mysql_fdw_version(); + mysql_fdw_version +------------------- + 20504 +(1 row) + -- Create foreign tables CREATE FOREIGN TABLE f_mysql_test(a int, b int) SERVER mysql_svr OPTIONS (dbname 'mysql_fdw_regress', table_name 'mysql_test'); diff --git a/mysql_fdw.c b/mysql_fdw.c index 69d86fd..864cbc7 100644 --- a/mysql_fdw.c +++ b/mysql_fdw.c @@ -102,9 +102,9 @@ unsigned int ((mysql_num_rows) (MYSQL_RES *result)); /* * In PG 9.5.1 the number will be 90501, - * our version is 2.5.3 so number will be 20503 + * our version is 2.5.4 so number will be 20504 */ -#define CODE_VERSION 20503 +#define CODE_VERSION 20504 typedef struct MySQLFdwRelationInfo { diff --git a/sql/select.sql b/sql/select.sql index 404df15..25c7f56 100644 --- a/sql/select.sql +++ b/sql/select.sql @@ -14,6 +14,9 @@ CREATE SERVER mysql_svr FOREIGN DATA WRAPPER mysql_fdw CREATE USER MAPPING FOR PUBLIC SERVER mysql_svr OPTIONS (username :MYSQL_USER_NAME, password :MYSQL_PASS); +-- Check version +SELECT mysql_fdw_version(); + -- Create foreign tables CREATE FOREIGN TABLE f_mysql_test(a int, b int) SERVER mysql_svr OPTIONS (dbname 'mysql_fdw_regress', table_name 'mysql_test');