Skip to content

fix(spi): guard empty UPDATE SET clause, quote-aware now() replacement, null-safe DBStructUtils - #2335

Merged
openai0229 merged 2 commits into
OtterMind:mainfrom
HandSonic:fix/review-core-spi
Jul 30, 2026
Merged

openai0229 merged 2 commits into
OtterMind:mainfrom
HandSonic:fix/review-core-spi

Conversation

@HandSonic

Copy link
Copy Markdown
Contributor

Fixes verified review findings tracked in #2281: (1) getUpdateSql with all columns unchanged produced 'UPDATE t SET WHERE ...' (deleteCharAt eating into SET) — now returns empty; (2) updateNow did raw string replacement corrupting 'default now()' inside quoted literals — now quote-aware; (3) DBStructUtils.buildColumnDdl NPE'd on null TYPE_NAME from generic drivers — null guard added (sibling buildAlterTable already had one). Regression tests added (79 green). Verified on fork HandSonic#18 (meaningful CI green) plus adversarial review.

@openai0229
openai0229 force-pushed the fix/review-core-spi branch from 5e81c33 to b8d26c4 Compare July 30, 2026 00:28
@openai0229
openai0229 merged commit 4e82a52 into OtterMind:main Jul 30, 2026
16 checks passed
@openai0229 openai0229 moved this from In Review to Done in Chat2DB Community Jul 30, 2026
@HandSonic
HandSonic deleted the fix/review-core-spi branch August 23, 2026 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants