forge-sql-orm 2.1.9 → 2.1.10

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.
@@ -1107,7 +1107,7 @@ async function processDDLResult(method, result) {
1107
1107
  }
1108
1108
  if (Array.isArray(result.rows)) {
1109
1109
  if (method === "execute") {
1110
- return { rows: result.rows };
1110
+ return { rows: [result.rows] };
1111
1111
  } else {
1112
1112
  const rows = result.rows.map((r) => Object.values(r));
1113
1113
  return { rows };
@@ -1122,13 +1122,9 @@ 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) {
1125
+ if (!result.rows) {
1126
1126
  return { rows: [[]] };
1127
1127
  }
1128
- if (isUpdateQueryResponse(result.rows)) {
1129
- const oneRow = result.rows;
1130
- return { rows: [oneRow] };
1131
- }
1132
1128
  return { rows: [result.rows] };
1133
1129
  }
1134
1130
  async function processAllMethod(query, params) {
@@ -1138,7 +1134,7 @@ async function processAllMethod(query, params) {
1138
1134
  }
1139
1135
  const result = await withTimeout$1(sqlStatement.execute());
1140
1136
  await saveMetaDataToContext(result.metadata);
1141
- if (!result?.rows) {
1137
+ if (!result.rows) {
1142
1138
  return { rows: [] };
1143
1139
  }
1144
1140
  const rows = result.rows.map((r) => Object.values(r));