sqlc icon indicating copy to clipboard operation
sqlc copied to clipboard

Backticks are not supported

Open dector opened this issue 1 year ago • 1 comments

Version

1.27.0

What happened?

Problem:

-- schema.sql
CREATE TABLE `users` (
    `name` text
);

This doesn't work ():

-- queries.sql

-- name: ListUsers :many
SELECT * FROM `users`;
error generating code: source error: 35:52: expected ')', found `id` (and 1 more errors)

sqlc is generating go code with

`name`

instead of just name.

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

No response

What operating system are you using?

No response

What database engines are you using?

SQLite

What type of code are you generating?

Go

dector avatar Oct 31 '24 23:10 dector

Still happening!

xanderazuaje avatar Apr 07 '25 10:04 xanderazuaje

I can confirm that this is still a bug v1.29.0

gamebox avatar Aug 27 '25 14:08 gamebox

Still happening, 1.30.0

fy0 avatar Sep 12 '25 16:09 fy0