@strapi/database 5.1.0 → 5.1.1

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.
package/dist/index.js CHANGED
@@ -4222,7 +4222,7 @@ const applyWhere = (qb, where) => {
4222
4222
  });
4223
4223
  };
4224
4224
  const fieldLowerFn = (qb) => {
4225
- if (qb.client.config.client === "postgres") {
4225
+ if (qb.client.dialect === "postgresql") {
4226
4226
  return "LOWER(CAST(?? AS VARCHAR))";
4227
4227
  }
4228
4228
  return "LOWER(??)";