Skip to content

Commit ed5a6f0

Browse files
committed
v.0.0.12
1 parent 5aacc58 commit ed5a6f0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "database-builder",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"description": "Framework to assist in database manipulation (DDL and CRUD)",
55
"main": "./src/index.js",
66
"types": "./src/index.d.ts",

src/crud/where-builder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ export class WhereBuilder<T> {
404404
case[Condition.Not, Condition.Between].toString():
405405
// ${column} BETWEEN ? AND ?
406406
if (column2.length === 2) {
407-
return `${column1} ${this.builderConditions(conditions)} ${column2[0]} ${WhereBuilder.AND} ${column2[0]}`;
407+
return `${column1} ${this.builderConditions(conditions)} ${column2[0]} ${WhereBuilder.AND} ${column2[1]}`;
408408
}
409409
throw new Error(`Length (${column2.length}) parameter to '${conditions}' condition incorrect!`);
410410
case[Condition.In].toString():

0 commit comments

Comments
 (0)