Skip to content

refactor(sql): disable double-quoted string literals - #8689

Merged
link2xt merged 1 commit into
mainfrom
link2xt/sql-disable-dqs
Sep 17, 2026
Merged

link2xt merged 1 commit into
mainfrom
link2xt/sql-disable-dqs

Conversation

@link2xt

@link2xt link2xt commented Sep 15, 2026

Copy link
Copy Markdown
Collaborator

Double-quoted string literals are not standard
and may be accidentally treated as an identifier
if there is an identifier with the same name
as the string contents:
https://sqlite.org/quirks.html#double_quoted_string_literals_are_accepted

@link2xt
link2xt marked this pull request as ready for review September 15, 2026 12:10
@link2xt
link2xt force-pushed the link2xt/sql-disable-dqs branch from ec7b67d to 9235706 Compare September 16, 2026 19:19
Comment thread src/sql.rs Outdated
Comment on lines +746 to +747
conn.set_db_config(rusqlite::config::DbConfig::SQLITE_DBCONFIG_DQS_DML, false)?;
conn.set_db_config(rusqlite::config::DbConfig::SQLITE_DBCONFIG_DQS_DDL, false)?;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dbconfig is top-level imported.

@hpk42 hpk42 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine but maybe address the one nit.

Double-quoted string literals are not standard
and may be accidentally treated as an identifier
if there is an identifier with the same name
as the string contents:
https://sqlite.org/quirks.html#double_quoted_string_literals_are_accepted
@link2xt
link2xt force-pushed the link2xt/sql-disable-dqs branch from 9235706 to dafcdee Compare September 17, 2026 12:29
@link2xt
link2xt merged commit dc9bba0 into main Sep 17, 2026
30 checks passed
@link2xt
link2xt deleted the link2xt/sql-disable-dqs branch September 17, 2026 13:31
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.

2 participants