Skip to content

refactor: use quoteColumn in buildSQLFromAST#976

Open
AyushCoder9 wants to merge 1 commit intodrawdb-io:mainfrom
AyushCoder9:refactor/build-sql-quoting
Open

refactor: use quoteColumn in buildSQLFromAST#976
AyushCoder9 wants to merge 1 commit intodrawdb-io:mainfrom
AyushCoder9:refactor/build-sql-quoting

Conversation

@AyushCoder9
Copy link
Copy Markdown
Contributor

Description

This PR standardizes how column references are quoted during SQL import by utilizing the quoteColumn utility.

Changes

  • Modified src/utils/importSQL/shared.js to replace hardcoded backticks with quoteColumn(v.column, db).

Rationale

Ensures that SQL expressions generated during import (e.g., in default values or check expressions) use the correct delimiter for the target database (backticks for MySQL/MariaDB, double quotes for PostgreSQL/SQLite, or square brackets for MSSQL).

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 27, 2026

@AyushCoder9 is attempting to deploy a commit to the dottle's projects Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant