Skip to content

The "sqlc.arg" doesn't accept "nullable => true" #1446

Description

@saleh-rahimzadeh

Version

1.12.0

What happened?

The sqlc.arg raises error when using with nullable => true argument:

sqlc.arg('user_id', nullable => true)

Error:

expected 1 parameter to sqlc.arg; got 2

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

No response

What operating system are you using?

Linux

What database engines are you using?

PostgreSQL

What type of code are you generating?

Go

Activity

  1. added
    bugSomething isn't working
    triageNew issues that hasn't been reviewed
    on Feb 17, 2022
  2. danielbprice commented on Feb 18, 2022

    @danielbprice
    Contributor

    Seems like #1155 is the same as this?

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 workingtriageNew issues that hasn't been reviewed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions