diff --git a/README.md b/README.md index 7a14eaf..17f180d 100644 --- a/README.md +++ b/README.md @@ -349,6 +349,7 @@ Homepage: # Changelog +* 1.11.0 — 2020-03-26 - allow for TLS v1.2 when using LuaSec (Miles Elam) * 1.10.0 — 2019-04-15 - support luaossl for crypto functions, added better error when missing crypto library * 1.9.0 — 2018-04-02 - nginx pool name includes user, connection reports name as `pgmoon` * 1.8.0 — 2016-11-07 — Add cqueues support, SSL calling fix for Nginx cosocket (@thibaultCha) diff --git a/pgmoon/init.lua b/pgmoon/init.lua index 2080690..4ebe466 100644 --- a/pgmoon/init.lua +++ b/pgmoon/init.lua @@ -7,7 +7,7 @@ do rshift, lshift, band = _obj_0.rshift, _obj_0.lshift, _obj_0.band end local unpack = table.unpack or unpack -local VERSION = "1.10.0" +local VERSION = "1.11.0" local _len _len = function(thing, t) if t == nil then diff --git a/pgmoon/init.moon b/pgmoon/init.moon index ae6d8fd..c9f91a4 100644 --- a/pgmoon/init.moon +++ b/pgmoon/init.moon @@ -4,7 +4,7 @@ import rshift, lshift, band from require "bit" unpack = table.unpack or unpack -VERSION = "1.10.0" +VERSION = "1.11.0" _len = (thing, t=type(thing)) -> switch t diff --git a/spec/pgmoon_spec.moon b/spec/pgmoon_spec.moon index 70a8b05..46af904 100644 --- a/spec/pgmoon_spec.moon +++ b/spec/pgmoon_spec.moon @@ -335,6 +335,11 @@ describe "pgmoon with server", -> drop table types_test ]] + it "deserializes row types correctly #ddd", -> + pg\query "select 1" + pg\query "select row(1, 'hello', 5.999)" + pg\query "select (1, 'hello', 5.999)" + describe "custom deserializer", -> it "deserializes big integer to string", -> assert pg\query [[