@iamkirbki/database-handler-core 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -208,7 +208,7 @@ export default class QueryStatementBuilder {
|
|
|
208
208
|
* ```
|
|
209
209
|
*/
|
|
210
210
|
static BuildWhere(where) {
|
|
211
|
-
if (!where)
|
|
211
|
+
if (!where || Object.keys(where).length === 0)
|
|
212
212
|
return "";
|
|
213
213
|
const queryParts = [];
|
|
214
214
|
const whereClauses = Object.keys(where).map(col => `${col} = @${col}`);
|