You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix: composite primary key tables update/delete wrong rows
Thread primaryKeyColumns: [String] through the entire editing pipeline,
replacing primaryKeyColumn: String? which silently dropped all but the
first PK column. UPDATE and DELETE now use all PK columns in WHERE.
Also: structure view saves now respect safe mode on read-only
connections, and discardChanges() clears stale changedRowIndices.
* fix: handleColumnChange was overwriting composite PKs with first column
The .onChange handler for column changes unconditionally set
primaryKeyColumns to [firstColumn], ignoring the actual schema PKs.
Now reads from tab.primaryKeyColumns which preserves the full
composite PK set from schema detection.
* fix: SQLite/D1 composite PK detection only matched first column
PRAGMA table_info returns pk as position (1, 2, 3...) not boolean.
The check row[5] == "1" only matched the first PK column. Changed
to row[5] != "0" to detect all columns in a composite primary key.
* fix: review feedback — guard unknown PK column, simplify TabSwitch and changelog
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
12
12
- Fix AI chat hanging the app during streaming, schema fetch, and conversation loading (#735)
13
13
- SSH Agent auth: fall back to key file from `~/.ssh/config` or default paths when agent has no loaded identities (#729)
14
14
- SSH-tunneled connections failing to reconnect after idle/sleep — health monitor now rebuilds the tunnel, OS-level TCP keepalive detects dead NAT mappings, and wake-from-sleep triggers immediate validation (#736)
15
+
- Composite primary key tables: editing or deleting a row affects all rows sharing the first PK value instead of just the target row
16
+
- Structure view saves bypass safe mode on read-only connections
0 commit comments