@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}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iamkirbki/database-handler-core",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "author": "iamkirbki",
5
5
  "description": "Core database abstractions and interfaces",
6
6
  "license": "ISC",