aboutsummaryrefslogtreecommitdiff
path: root/ports/oatpp-postgresql
diff options
context:
space:
mode:
Diffstat (limited to 'ports/oatpp-postgresql')
-rw-r--r--ports/oatpp-postgresql/fix-windows-build.patch13
-rw-r--r--ports/oatpp-postgresql/portfile.cmake8
-rw-r--r--ports/oatpp-postgresql/vcpkg.json3
3 files changed, 19 insertions, 5 deletions
diff --git a/ports/oatpp-postgresql/fix-windows-build.patch b/ports/oatpp-postgresql/fix-windows-build.patch
new file mode 100644
index 000000000..0b6a57d86
--- /dev/null
+++ b/ports/oatpp-postgresql/fix-windows-build.patch
@@ -0,0 +1,13 @@
+diff --git a/src/oatpp-postgresql/mapping/Serializer.hpp b/src/oatpp-postgresql/mapping/Serializer.hpp
+index af76701..615d11b 100644
+--- a/src/oatpp-postgresql/mapping/Serializer.hpp
++++ b/src/oatpp-postgresql/mapping/Serializer.hpp
+@@ -201,7 +201,7 @@ private:
+
+ outData.oid = _this->getArrayTypeOid(itemType);
+ outData.dataSize = stream.getCurrentPosition();
+- outData.dataBuffer.template reset(new char[outData.dataSize]);
++ outData.dataBuffer.reset(new char[outData.dataSize]);
+ outData.data = outData.dataBuffer.get();
+ outData.dataFormat = 1;
+
diff --git a/ports/oatpp-postgresql/portfile.cmake b/ports/oatpp-postgresql/portfile.cmake
index 410f1971c..ce8af28f8 100644
--- a/ports/oatpp-postgresql/portfile.cmake
+++ b/ports/oatpp-postgresql/portfile.cmake
@@ -1,13 +1,15 @@
-set(OATPP_VERSION "1.2.0")
+set(OATPP_VERSION "1.2.5")
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO oatpp/oatpp-postgresql
- REF 349d610084375c46be95d50ce10b787ae6c2baf4 # 1.2.0
- SHA512 2faa688077020bbe64807be85d8d61e5aa84163a044d42df0a3b1701cf82048ff0322acb72d4e757a38403e14cba6a7a766daa965862e04756e483d9b750a365
+ REF ${OATPP_VERSION}
+ SHA512 43381422224f0254a823fdc702d1a007c405930157e6ea361f51e5232df4b04073181de175f61ab4986f3468d21f9ac25a0820d14efcecb0afb0096bdd674dcb
HEAD_REF master
+ PATCHES
+ fix-windows-build.patch # see https://github.com/oatpp/oatpp-postgresql/pull/8
)
set(VCPKG_C_FLAGS "${VCPKG_CXX_FLAGS} -D_CRT_SECURE_NO_WARNINGS")
diff --git a/ports/oatpp-postgresql/vcpkg.json b/ports/oatpp-postgresql/vcpkg.json
index 4872bbb3d..7a5eb7b01 100644
--- a/ports/oatpp-postgresql/vcpkg.json
+++ b/ports/oatpp-postgresql/vcpkg.json
@@ -1,7 +1,6 @@
{
"name": "oatpp-postgresql",
- "version-string": "1.2.0",
- "port-version": 1,
+ "version": "1.2.5",
"description": "Oat++ PostgreSQL adapter for Oat++ ORM (alpha - not all datatypes are supported).",
"homepage": "https://github.com/oatpp/oatpp-postgresql",
"dependencies": [