@minatojs/driver-mysql
Advanced tools
Comparing version 2.7.4 to 2.7.5
@@ -515,3 +515,3 @@ "use strict"; | ||
const output = builder.parseEval(expr, false); | ||
const ref = inner.startsWith("(") && inner.endsWith(")") ? sel.ref : ""; | ||
const ref = (0, import_sql_utils.isBracketed)(inner) ? sel.ref : ""; | ||
const [data] = await this.queue(`SELECT ${output} AS value FROM ${inner} ${ref}`); | ||
@@ -518,0 +518,0 @@ return builder.load(data.value); |
{ | ||
"name": "@minatojs/driver-mysql", | ||
"version": "2.7.4", | ||
"version": "2.7.5", | ||
"description": "MySQL Driver for Minato", | ||
@@ -32,11 +32,11 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@minatojs/tests": "^1.8.4", | ||
"@minatojs/tests": "^1.8.5", | ||
"@types/mysql": "^2.15.24" | ||
}, | ||
"dependencies": { | ||
"@minatojs/sql-utils": "^4.2.1", | ||
"@minatojs/sql-utils": "^4.2.2", | ||
"@vlasky/mysql": "^2.18.6", | ||
"cosmokit": "^1.5.1", | ||
"cosmokit": "^1.5.2", | ||
"reggol": "^1.6.3" | ||
} | ||
} |
@@ -5,3 +5,3 @@ import { createPool, format } from '@vlasky/mysql' | ||
import { Database, Driver, Eval, executeUpdate, Field, isEvalExpr, Model, RuntimeError, Selection } from '@minatojs/core' | ||
import { Builder, escapeId } from '@minatojs/sql-utils' | ||
import { Builder, escapeId, isBracketed } from '@minatojs/sql-utils' | ||
import Logger from 'reggol' | ||
@@ -539,3 +539,3 @@ | ||
const output = builder.parseEval(expr, false) | ||
const ref = inner.startsWith('(') && inner.endsWith(')') ? sel.ref : '' | ||
const ref = isBracketed(inner) ? sel.ref : '' | ||
const [data] = await this.queue(`SELECT ${output} AS value FROM ${inner} ${ref}`) | ||
@@ -542,0 +542,0 @@ return builder.load(data.value) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71671
Updated@minatojs/sql-utils@^4.2.2
Updatedcosmokit@^1.5.2