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');