forge-sql-orm 2.1.8 → 2.1.9

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.
@@ -1122,14 +1122,14 @@ async function processExecuteMethod(query, params) {
1122
1122
  }
1123
1123
  const result = await withTimeout$1(sqlStatement.execute());
1124
1124
  await saveMetaDataToContext(result.metadata);
1125
- if (!result?.rows || Array.isArray(result.rows) && result.rows.length === 0) {
1126
- return { rows: [void 0] };
1125
+ if (!result?.rows) {
1126
+ return { rows: [[]] };
1127
1127
  }
1128
1128
  if (isUpdateQueryResponse(result.rows)) {
1129
1129
  const oneRow = result.rows;
1130
- return { ...oneRow, rows: [oneRow] };
1130
+ return { rows: [oneRow] };
1131
1131
  }
1132
- return { rows: result.rows };
1132
+ return { rows: [result.rows] };
1133
1133
  }
1134
1134
  async function processAllMethod(query, params) {
1135
1135
  const sqlStatement = await sql$1.sql.prepare(query);