Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit 893b802

Browse files
authored
fix(lib): set correct alias for execute
MySQL-async syntax was calling the execute export rather than update.
1 parent 9b8d6d6 commit 893b802

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/MySQL.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
-- As of v2.0.0 this is the preferred method of interacting with oxmysql
33
-- * You can use mysql-async syntax or oxmysql syntax (refer to issue #77 or line 118)
44
-- * Using this lib provides minor improvements to performance and helps debug poor queries
5-
-- * If using mysql-async syntax or newer functions, a resource is not explicity bound to using oxmysql
5+
-- * If using mysql-async syntax, a resource is not explicity bound to using oxmysql
66

77
-- todo: new annotations; need to see if I can get it working with metatables, otherwise it'll need stubs
88

@@ -93,7 +93,7 @@ local alias = {
9393
fetchScalar = 'scalar',
9494
fetchSingle = 'single',
9595
insert = 'insert',
96-
execute = 'execute',
96+
execute = 'update',
9797
transaction = 'transaction',
9898
prepare = 'prepare'
9999
}

0 commit comments

Comments
 (0)