Skip to content

fix: correct typos in sqlite catalog function names and comments#4507

Open
maxtaran2010 wants to merge 1 commit into
sqlc-dev:mainfrom
maxtaran2010:fix/typos-in-comments-and-sqlite-catalog
Open

fix: correct typos in sqlite catalog function names and comments#4507
maxtaran2010 wants to merge 1 commit into
sqlc-dev:mainfrom
maxtaran2010:fix/typos-in-comments-and-sqlite-catalog

Conversation

@maxtaran2010

Copy link
Copy Markdown

Summary

Fix several typos found across the codebase:

  • internal/engine/sqlite/stdlib.go (functional bug): RAMDOMRANDOM and RAMDOMBLOBRANDOMBLOB. These misspellings in the SQLite built-in function catalog mean sqlc fails to recognize RANDOM() and RANDOMBLOB() in queries.
  • internal/codegen/golang/struct.go: prepandprepend in comment
  • internal/codegen/golang/opts/override.go: unsigedunsigned in comment
  • internal/compiler/selector.go: simpliestsimplest in comment
  • protos/plugin/codegen.proto: OveridesOverrides in comment

The RANDOM/RANDOMBLOB fix is the most impactful — it's a functional issue where queries using SQLite's built-in random number functions won't be recognized by sqlc.

- RAMDOM → RANDOM and RAMDOMBLOB → RANDOMBLOB in sqlite/stdlib.go:
  these misspellings caused sqlc to not recognize SQLite's RANDOM() and
  RANDOMBLOB() built-in functions in queries
- prepand → prepend in codegen/golang/struct.go (comment)
- unsiged → unsigned in codegen/golang/opts/override.go (comment)
- simpliest → simplest in compiler/selector.go (comment)
- Overides → Overrides in protos/plugin/codegen.proto (comment)
Copilot AI review requested due to automatic review settings July 8, 2026 09:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

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