mirror of
https://github.com/t8y2/dbx.git
synced 2026-11-15 13:01:01 +08:00
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>