@mastra/dsql 1.3.2 → 1.3.3-alpha.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @mastra/dsql
2
2
 
3
+ ## 1.3.3-alpha.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Fix missing $ prefix on the WHERE id placeholder in AgentsDSQL.update(), which caused "operator does not exist: text = integer" on every agent update. ([#22389](https://github.com/mastra-ai/mastra/pull/22389))
8
+
9
+ - Updated dependencies [[`7176362`](https://github.com/mastra-ai/mastra/commit/717636281a3339911a05ea2cc8ae38afe4fd2cef), [`e3b796d`](https://github.com/mastra-ai/mastra/commit/e3b796d29a63f0d5c97dd815aadec40687346d70), [`49ccd14`](https://github.com/mastra-ai/mastra/commit/49ccd142268a61fb55ea75bc76287643a21f3677), [`3855b38`](https://github.com/mastra-ai/mastra/commit/3855b38c4c25af32ab8e298e148becc963abe92c)]:
10
+ - @mastra/core@1.63.0-alpha.0
11
+
3
12
  ## 1.3.2
4
13
 
5
14
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1454,7 +1454,7 @@ var AgentsDSQL = class AgentsDSQL extends _mastra_core_storage.AgentsStorage {
1454
1454
  setClauses.push(`"updatedAtZ" = $${paramIndex++}`);
1455
1455
  values.push(now);
1456
1456
  values.push(id);
1457
- await withRetry(() => this.#db.client.none(`UPDATE ${tableName} SET ${setClauses.join(", ")} WHERE id = ${paramIndex}`, values));
1457
+ await withRetry(() => this.#db.client.none(`UPDATE ${tableName} SET ${setClauses.join(", ")} WHERE id = $${paramIndex}`, values));
1458
1458
  const updatedAgent = await this.getById(id);
1459
1459
  if (!updatedAgent) throw new _mastra_core_error.MastraError({
1460
1460
  id: (0, _mastra_core_storage.createStorageErrorId)("DSQL", "UPDATE_AGENT", "NOT_FOUND_AFTER_UPDATE"),