mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-01 22:21:51 +00:00
fix: Resolve null length on some queries
- Ensure parameters when checking length, and update dependencies for mysql2 patch
This commit is contained in:
1 parent
abf259543d
commit
ec9d787be4
2 files changed
+8
-14
No files matched your search
+1
-1
@@ -28,7 +28,7 @@ const parseTypes = (field, next) => {
|
||||
const parseParameters = (query, parameters) => {
|
||||
if (query === undefined) throw new FormatError(`Undefined query passed`);
|
||||
|
||||
if (typeof parameters === 'function') return [query, []];
|
||||
if (!parameters || typeof parameters === 'function') return [query, []];
|
||||
|
||||
if (query.includes('@') || query.includes(':')) {
|
||||
const obj = parameters.length !== 0 ? parameters : (() => {
|
||||
|
||||
Reference in new issue
Block a user