Skip to content

Commit

Permalink
fix(lib): set correct alias for execute
Browse files Browse the repository at this point in the history
MySQL-async syntax was calling the execute export rather than update.
  • Loading branch information
thelindat authored Dec 24, 2021
1 parent 9b8d6d6 commit 893b802
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MySQL.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -93,7 +93,7 @@ local alias = {
fetchScalar = 'scalar',
fetchSingle = 'single',
insert = 'insert',
execute = 'execute',
execute = 'update',
transaction = 'transaction',
prepare = 'prepare'
}
Expand Down

0 comments on commit 893b802

Please sign in to comment.