Files
dbx/crates/dbx-sql-dialect/src/sql_dialect
ordinary beingandTong-bit-art 2e6375377a fix(opengauss): derive identifier quotes from the compatibility mode (#13803)
openGauss databases switch identifier quoting with the database
compatibility mode: MySQL-compatible (B) databases only accept
backticks while A/PG modes use double quotes. DBX never requested the
quote for native openGauss connections and the backend only probed
GaussDB, so generated table SQL always used PostgreSQL's default double
quotes and failed with `syntax error at or near ""public""` in MySQL
mode.

Request the quote for native openGauss connections and route the native
openGauss pool through the existing `datcompatibility` probe.

Fixes #13596

Co-authored-by: Tong-bit-art <Tong-bit-art@users.noreply.github.com>
2026-10-28 20:04:43 +08:00
..