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.
@@ -1103,14 +1103,14 @@ async function processExecuteMethod(query, params) {
1103
1103
  }
1104
1104
  const result = await withTimeout$1(sqlStatement.execute());
1105
1105
  await saveMetaDataToContext(result.metadata);
1106
- if (!result?.rows || Array.isArray(result.rows) && result.rows.length === 0) {
1107
- return { rows: [void 0] };
1106
+ if (!result?.rows) {
1107
+ return { rows: [[]] };
1108
1108
  }
1109
1109
  if (isUpdateQueryResponse(result.rows)) {
1110
1110
  const oneRow = result.rows;
1111
- return { ...oneRow, rows: [oneRow] };
1111
+ return { rows: [oneRow] };
1112
1112
  }
1113
- return { rows: result.rows };
1113
+ return { rows: [result.rows] };
1114
1114
  }
1115
1115
  async function processAllMethod(query, params) {
1116
1116
  const sqlStatement = await sql$1.prepare(query);