Skip to content

Conversation

david-pivonka
Copy link

This PR fixes an issue where camelCased column names in PostgreSQL were not being handled correctly, leading to query errors.

@julien040 julien040 self-assigned this Aug 16, 2025
@julien040 julien040 added the bug Something isn't working label Aug 16, 2025
Repository owner deleted a comment from vercel bot Aug 16, 2025
@julien040
Copy link
Owner

julien040 commented Aug 16, 2025

Hello @david-pivonka,
Thank you for opening this pull request!

Can you detail what kind of issues you were encountering? I tried to reproduce the issue on my computer, but I couldn't. The query worked with and without the patch.

-- Run on PostgreSQL
CREATE TABLE a (
	id VARCHAR PRIMARY KEY,
	myAge INTEGER,
	myName VARCHAR
);

-- Run on Anyquery
SELECT * FROM a

Or is it with a table that has two columns, with one camel-cased? Because SQLite (which Anyquery is based on) converts both to mycol, and it fails.

CREATE TABLE test (
    mycol INT,
    "MyCol" INT
);

Anyway, I'm still going to merge this pull request because Anyquery should always pass the escaped identifier to the end database. I'm just curious.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants