diff --git a/expected/select.out b/expected/select.out index 9f1fbd0..19ea15b 100644 --- a/expected/select.out +++ b/expected/select.out @@ -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'); diff --git a/expected/select_1.out b/expected/select_1.out index 38a231d..29be052 100644 --- a/expected/select_1.out +++ b/expected/select_1.out @@ -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'); diff --git a/mongo_fdw.c b/mongo_fdw.c index 79e68e2..3ed4043 100644 --- a/mongo_fdw.c +++ b/mongo_fdw.c @@ -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); diff --git a/sql/select.sql b/sql/select.sql index 8351016..37a64de 100644 --- a/sql/select.sql +++ b/sql/select.sql @@ -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');