From 893b802029c7fd9405081ffe4c1314fedf245a9d Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Sat, 25 Dec 2021 04:10:09 +1100 Subject: [PATCH] fix(lib): set correct alias for execute MySQL-async syntax was calling the execute export rather than update. --- lib/MySQL.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/MySQL.lua b/lib/MySQL.lua index 0a72947..b4e0c26 100644 --- a/lib/MySQL.lua +++ b/lib/MySQL.lua @@ -2,7 +2,7 @@ -- As of v2.0.0 this is the preferred method of interacting with oxmysql -- * You can use mysql-async syntax or oxmysql syntax (refer to issue #77 or line 118) -- * Using this lib provides minor improvements to performance and helps debug poor queries --- * If using mysql-async syntax or newer functions, a resource is not explicity bound to using oxmysql +-- * If using mysql-async syntax, a resource is not explicity bound to using oxmysql -- todo: new annotations; need to see if I can get it working with metatables, otherwise it'll need stubs @@ -93,7 +93,7 @@ local alias = { fetchScalar = 'scalar', fetchSingle = 'single', insert = 'insert', - execute = 'execute', + execute = 'update', transaction = 'transaction', prepare = 'prepare' }