Skip to content

Conversation

@JanJakes
Copy link
Member

It turns out that when selecting a string literal, the resulting column name differs between MySQL and SQLite.

For example, with a query such as SELECT 'abc':

  • In MySQL, the returned column name is abc (the unquoted string value).
  • In SQLite, the returned column name is 'abc' (the quoted string).

To address that, we need to use "SELECT 'abc' AS `abc`" in these cases.

@JanJakes JanJakes requested review from a team and adamziel December 18, 2025 09:57
@JanJakes JanJakes mentioned this pull request Dec 18, 2025
@adamziel
Copy link
Collaborator

Oh wow, this is such a good find.

@adamziel adamziel merged commit 24ecc7b into develop Dec 18, 2025
16 checks passed
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.

3 participants