mirror of
https://github.com/typeorm/typeorm.git
synced 2025-12-08 21:26:23 +00:00
fixed issue when empty with only " AND " query builder expression is generated
This commit is contained in:
parent
04e61ce135
commit
aa12f786ca
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "typeorm",
|
||||
"private": true,
|
||||
"version": "0.2.0-alpha.17",
|
||||
"version": "0.2.0-alpha.18",
|
||||
"description": "Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, WebSQL, MongoDB databases.",
|
||||
"license": "MIT",
|
||||
"readmeFilename": "README.md",
|
||||
|
||||
@ -738,8 +738,8 @@ export abstract class QueryBuilder<Entity> {
|
||||
parameterIndex++;
|
||||
return `${aliasPath} = ${this.connection.driver.createParameter(parameterName, parameterIndex - 1)}`;
|
||||
}
|
||||
}).join(" AND ");
|
||||
}).join(" AND ");
|
||||
}).filter(expression => !!expression).join(" AND ");
|
||||
}).filter(expression => !!expression).join(" AND ");
|
||||
});
|
||||
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user