While testing the prosody update (which is working fine here!) I
stumbled upon this error while trying to create a user with prosodyctl:

Error initializing module 'storage_sql' on 'example.com:
/usr/local/share/lua/5.3/DBI.lua:31: attempt to call a nil value (field
'maxn')

it was my fault for forgetting to install a luadbi backend, but that's
actually calling table.maxn that has been removed in lua5.3. (i hit this
https://github.com/mwild1/luadbi/commit/23bac7124f27c7e36431932e77c68fca91c96c25)
Before understanding the error however i had already had luadbi updated
to the latest version, diff below.

The changelog for 0.7.1 and 0.7.2 also lists various bugfixes,
improvements and fixed crashes with the postgresql driver, I'm testing
the lua53 flavor with prosody and postgresql and it's working fine.  ok
to update?  net/prosody is the only consumer.


Index: Makefile
===================================================================
RCS file: /cvs/ports/databases/luadbi/Makefile,v
retrieving revision 1.17
diff -u -p -r1.17 Makefile
--- Makefile    11 Mar 2022 18:31:22 -0000      1.17
+++ Makefile    28 Mar 2022 16:27:43 -0000
@@ -2,11 +2,10 @@ COMMENT-main= database interface library
 COMMENT-mysql= MySQL driver for luadbi
 COMMENT-pgsql= PostgreSQL driver for luadbi
 
-V=             0.6
+V=             0.7.2
 GH_ACCOUNT=    mwild1
 GH_PROJECT=    luadbi
 GH_TAGNAME=    v${V}
-REVISION=      1
 
 PKGNAME=               luadbi-$V
 FULLPKGNAME-main=      ${_MODLUA_PKG_PREFIX}dbi-$V
Index: distinfo
===================================================================
RCS file: /cvs/ports/databases/luadbi/distinfo,v
retrieving revision 1.2
diff -u -p -r1.2 distinfo
--- distinfo    14 Jan 2018 15:36:40 -0000      1.2
+++ distinfo    28 Mar 2022 16:27:43 -0000
@@ -1,2 +1,2 @@
-SHA256 (luadbi-0.6.tar.gz) = QyiaVdlF4AzRkN9RX2CUgq9G7VkookzOZuppJfS30lU=
-SIZE (luadbi-0.6.tar.gz) = 28621
+SHA256 (luadbi-0.7.2.tar.gz) = BafQLQyuOXCvJPcvOe3+cX45Qkkn0H+7wJ6+luoC9aY=
+SIZE (luadbi-0.7.2.tar.gz) = 36462

Reply via email to