Skip to content

"created_at timestamp NOT NULL" The field is not generated correctly for type "time.Time" #4003

Open
@1514599514

Description

@1514599514

Version

1.29.0

What happened?

Image

The mysql driver is converted normally.
Found this issue only on pgsql.

Relevant log output

Database schema

CREATE TABLE users(
  id         BIGSERIAL PRIMARY KEY,
  username   text      NOT NULL UNIQUE,
  password   text      NOT NULL,
  created_at timestamp NOT NULL DEFAULT NOW()
);

SQL queries

Configuration

Playground URL

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

What operating system are you using?

Windows

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions