prisma-sql 1.41.0 → 1.42.0

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.
@@ -56,7 +56,7 @@ var require_package = __commonJS({
56
56
  "package.json"(exports$1, module) {
57
57
  module.exports = {
58
58
  name: "prisma-sql",
59
- version: "1.41.0",
59
+ version: "1.42.0",
60
60
  description: "Convert Prisma queries to optimized SQL with type safety. 2-7x faster than Prisma Client.",
61
61
  main: "dist/index.cjs",
62
62
  module: "dist/index.js",
@@ -3812,7 +3812,12 @@ function buildSelectSpec(input) {
3812
3812
  model,
3813
3813
  alias
3814
3814
  );
3815
- const orderByClause = buildOrderByClause(normalizedArgs, alias, dialect);
3815
+ const orderByClause = buildOrderByClause(
3816
+ normalizedArgs,
3817
+ alias,
3818
+ dialect,
3819
+ model
3820
+ );
3816
3821
  const { take, skip, cursor } = getPaginationParams(method, normalizedArgs);
3817
3822
  const params = createParamStoreFrom(
3818
3823
  whereResult.params,