Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table "product_metadata" incorrectly generates model name. #3552

Closed
qanghaa opened this issue Aug 18, 2024 · 0 comments · Fixed by #3553
Closed

Table "product_metadata" incorrectly generates model name. #3552

qanghaa opened this issue Aug 18, 2024 · 0 comments · Fixed by #3553

Comments

@qanghaa
Copy link
Contributor

qanghaa commented Aug 18, 2024

Version

1.27.0

What happened?

I have 2 tables with name like bonuses, product_metadata when I using sqlc to generate models. The struct name generated seems unexpected

  • table bonuses => struct name Bonuse
  • table product_metadata => struct name ProductMetaDatum

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

https://play.sqlc.dev/p/c459554e53b478b864dd0728b83783f6e7e22bc10c737cd3834f9df7435cec67

What operating system are you using?

Linux

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

@qanghaa qanghaa added the bug Something isn't working label Aug 18, 2024
@qanghaa qanghaa changed the title Table "bonuses" and "product_metadata" incorrectly generates model name. Table "product_metadata" incorrectly generates model name. Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant