Skip to content

Commit

Permalink
Stamp 2.5.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevanchalke committed Aug 3, 2020
1 parent fc01444 commit 8912bbb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
7 changes: 7 additions & 0 deletions expected/select.out
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
4 changes: 2 additions & 2 deletions mysql_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
3 changes: 3 additions & 0 deletions sql/select.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 8912bbb

Please sign in to comment.