drizzle-orm
Advanced tools
Comparing version 0.10.12 to 0.10.13
@@ -48,3 +48,4 @@ "use strict"; | ||
this._orderBy.push('ORDER BY '); | ||
this._orderBy.push(`${column.getColumnName()} `); | ||
const columnParent = this._joinCache[column.getParent().tableName()] ? this._joinCache[column.getParent().tableName()] : column.getParent(); | ||
this._orderBy.push(`${columnParent}.${ecranate_1.ecranate(column.getColumnName())} `); | ||
this._orderBy.push(order_1.default[order]); | ||
@@ -51,0 +52,0 @@ } |
@@ -18,3 +18,3 @@ "use strict"; | ||
} | ||
if (ecranate_1.shouldEcranate(value)) { | ||
else if (ecranate_1.shouldEcranate(value)) { | ||
finalArray.push(`$${nextPosition}`); | ||
@@ -32,3 +32,3 @@ finalValues.push(`${value.toString()}`); | ||
} | ||
return { query: finalArray.join(','), values: finalValues }; | ||
return { query: finalArray.join(''), values: finalValues }; | ||
}; | ||
@@ -35,0 +35,0 @@ this.values = values; |
@@ -12,2 +12,5 @@ "use strict"; | ||
selectStrategy(value) { | ||
if (typeof value === 'string') { | ||
return value ? parseInt(value, 10) : undefined; | ||
} | ||
return value; | ||
@@ -14,0 +17,0 @@ } |
{ | ||
"name": "drizzle-orm", | ||
"version": "0.10.12", | ||
"version": "0.10.13", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
272843
5595