Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: sqlc-dev/sqlc
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: coder/sqlc
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 254 files changed
  • 3 contributors

Commits on Oct 29, 2025

  1. Configuration menu
    Copy the full SHA
    a70c5e5 View commit details
    Browse the repository at this point in the history

Commits on May 8, 2026

  1. Merge upstream v1.31.1

    This pulls in 78 upstream commits since coder/sqlc's prior fork point
    (b807fe9), most importantly:
    
    * #4390: strip \restrict / \unrestrict psql meta-commands
      from schema files (fixes #4065 / coder/internal#965).
    * #4378: upgrade Go toolchain to 1.26.2.
    * Various dependency bumps and parser improvements.
    
    Conflict resolution:
    
    * All content conflicts were import-path collisions — our renamed
      imports (github.com/coder/sqlc) versus upstream's additions of new
      sqlc-dev/sqlc imports. Resolved by taking upstream's side, then
      re-applying the global rename across .go and go.mod files (including
      newly-added upstream files that auto-merged).
    * internal/sqltest/pgx.go: accepted upstream deletion (removed in
      #4379, 'Remove github.com/jackc/pgx/v4 dependency').
    ethanndickson committed May 8, 2026
    Configuration menu
    Copy the full SHA
    08df6fc View commit details
    Browse the repository at this point in the history

Commits on May 11, 2026

  1. Merge upstream v1.31.1

    ethanndickson authored May 11, 2026
    Configuration menu
    Copy the full SHA
    337309b View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2026

  1. Track CTE scope to resolve ambiguous column references (#1)

    A subquery inside a CTE made sqlc resolve column references in that
    CTE, and in CTEs selecting from it, against the subquery's tables too.
    Valid queries then failed to generate with false positives such as
    `column reference "owner_id" is ambiguous` or `column "w_owner_id" does
    not exist`. Track the CTE each reference belongs to when resolving
    columns and parameters.
    
    Parameters inside a CTE, or compared against a CTE column, now get the
    referenced type instead of a nullable fallback: cte_left_join and
    cte_update generate string, bool and int64 where they generated
    pgtype.Text, pgtype.Bool and pgtype.Int8.
    
    The fix previously lived only on the mafredri/fix-ambiguous-column.import
    branch that coder/coder pinned. It never reached main, so coder/coder
    lost it when it moved its pin to main's merge of upstream v1.31.1 (#6).
    The upstream PR, #4159, is still open.
    mafredri authored Nov 13, 2026
    Configuration menu
    Copy the full SHA
    fb627c9 View commit details
    Browse the repository at this point in the history
Loading