Skip to content

Commit

Permalink
Stamp 5.2.7.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeevanchalke committed Aug 3, 2020
1 parent 63db08c commit aaeb6c7
Show file tree
Hide file tree
Showing 4 changed files with 19 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 EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
OPTIONS (address :MONGO_HOST, port :MONGO_PORT);
CREATE USER MAPPING FOR public SERVER mongo_server;
-- Check version
SELECT mongo_fdw_version();
mongo_fdw_version
-------------------
50207
(1 row)

-- Create foreign tables
CREATE FOREIGN TABLE f_mongo_test (_id name, a int, b varchar)
SERVER mongo_server OPTIONS (database 'mongo_fdw_regress', collection 'mongo_test');
Expand Down
7 changes: 7 additions & 0 deletions expected/select_1.out
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ CREATE EXTENSION IF NOT EXISTS mongo_fdw;
CREATE SERVER mongo_server FOREIGN DATA WRAPPER mongo_fdw
OPTIONS (address :MONGO_HOST, port :MONGO_PORT);
CREATE USER MAPPING FOR public SERVER mongo_server;
-- Check version
SELECT mongo_fdw_version();
mongo_fdw_version
-------------------
50207
(1 row)

-- Create foreign tables
CREATE FOREIGN TABLE f_mongo_test (_id name, a int, b varchar)
SERVER mongo_server OPTIONS (database 'mongo_fdw_regress', collection 'mongo_test');
Expand Down
4 changes: 2 additions & 2 deletions mongo_fdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ PG_MODULE_MAGIC;

/*
* In PG 9.5.1 the number will be 90501,
* our version is 5.1.0 so number will be 50100
* our version is 5.2.7 so number will be 50207
*/
#define CODE_VERSION 50201
#define CODE_VERSION 50207

extern PGDLLEXPORT void _PG_init(void);
const char *EscapeJsonString(const char *string);
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 mongo_server FOREIGN DATA WRAPPER mongo_fdw
OPTIONS (address :MONGO_HOST, port :MONGO_PORT);
CREATE USER MAPPING FOR public SERVER mongo_server;

-- Check version
SELECT mongo_fdw_version();

-- Create foreign tables
CREATE FOREIGN TABLE f_mongo_test (_id name, a int, b varchar)
SERVER mongo_server OPTIONS (database 'mongo_fdw_regress', collection 'mongo_test');
Expand Down

0 comments on commit aaeb6c7

Please sign in to comment.