Skip to content

serial4 is interpreted as Any #30

Description

@Zerkath

Inconsistent behavior of psql types.

CREATE TABLE example(
  id SERIAL4 PRIMARY KEY NOT NULL
);

-- name: test :many
SELECT id FROM example;

The generated table model is

data class Example(
  val id: Any
)

Would expect the type to be Int instead of Any.

Maybe affects other serial or float types I have not tested this yet.
For e.g. int4 works ok.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions