GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Go code generation fails for PostgreSQL ENUM values with '+' and '-' due to duplicate constant names · Issue #4515 · sqlc-dev/sqlc

Go code generation fails for PostgreSQL ENUM values with '+' and '-' due to duplicate constant names #4515

New issue
Copy link
New issue
Copy link
Open
#4519
Open
Go code generation fails for PostgreSQL ENUM values with '+' and '-' due to duplicate constant names#4515
#4519
Copy link
Labels
bugSomething isn't workingSomething isn't working

Description

@arjun-liveeye
arjun-liveeye
opened on Jul 14, 2026
Issue body actions

Version

1.31.1

Version

  • sqlc: v1.31.1
  • PostgreSQL: 18x
  • Go: go1.26.1 windows/amd64

What happened?

When using a PostgreSQL ENUM that contains values with + and - (e.g. blood groups), sqlc generates duplicate Go constant names, causing the generated code to fail to compile.

For example:

CREATE TYPE blood_group_type AS ENUM (
    'A+',
    'A-',
    'B+',
    'B-',
    'AB+',
    'AB-',
    'O+',
    'O-'
);

Activity

  1. arjun-liveeye
    added
    bugSomething isn't workingSomething isn't working
    on Jul 14, 2026
  2. alliasgher commented on Jul 19, 2026

    @alliasgher
    alliasgher
    on Jul 19, 2026
    More actions

    Opened #4519 for this.

  3. arjun-liveeye commented on Jul 31, 2026

    @arjun-liveeye
    arjun-liveeye
    on Jul 31, 2026
    Author
    More actions

    Kindly update this issue after the PR is merged so I can verify it in the appropriate release.

  4. arjun-liveeye commented on Sep 25, 2026

    @arjun-liveeye
    arjun-liveeye
    on Sep 25, 2026
    Author
    More actions

    Hi, just following up on this PR. It has been open for several months, and we're still affected by the PostgreSQL ENUM constant-name collision described in #4515. Is there any update on the review or merge timeline? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.