Skip to content

postgresql18 supports returning OLD NEW #4556

Closed

Description

@gtyhn

Version

1.31.1

What happened?

demo:

`-- name: Test :one

update "user" set username = 'test' where id = 1 returning old.username`

error: column "username" does not exist

Relevant log output

Database schema

SQL queries

Configuration

Playground URL

No response

What operating system are you using?

No response

What database engines are you using?

No response

What type of code are you generating?

No response

Activity

  1. kyleconroy commented on Aug 17, 2026

    @kyleconroy
    Collaborator

    This has been fixed on main

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 working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions