Skip to content

fix(mariadb): quote/escape unmapped JDBC values and keep now()/default bare in SQL conversion - #2302

Merged
openai0229 merged 2 commits into
OtterMind:mainfrom
HandSonic:fix/review-mariadb
Jul 28, 2026
Merged

fix(mariadb): quote/escape unmapped JDBC values and keep now()/default bare in SQL conversion#2302
openai0229 merged 2 commits into
OtterMind:mainfrom
HandSonic:fix/review-mariadb

Conversation

@HandSonic

Copy link
Copy Markdown
Contributor

Fixes verified review findings tracked in #2281: (1) convertJDBCValueStrByType fell back to the raw unquoted super.convertJDBCValueByType for factory-unmapped types (VARCHAR/CHAR/INT/DATE/JSON/ENUM/SET), emitting unescaped values like O'Brien into exported INSERTs — now falls back to the Str variant with quoting/escaping; (2) convertSQLValueByType dropped the FUNCTION_SET short-circuit, quoting now()/default as string literals for TIMESTAMP/DATETIME — restored. Regression tests added. Verified on fork HandSonic#4 (CI green).

…t bare in SQL value conversion (code review follow-up)
@openai0229
openai0229 merged commit 9d42ff2 into OtterMind:main Jul 28, 2026
15 of 16 checks passed
@openai0229 openai0229 moved this from In Review to Done in Chat2DB Community Jul 28, 2026
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