Skip to content

bug: nil as database/sql arg transforms to Void, but must be a NullType #2062

Description

@asmyasnikov
result, err := db.ExecQuery(ctx, "INSERT INTO tbl (a, b, c) VALUES ($p1, $p2, $p3)", 
  sql.Named("p1", 1),
  sql.Named("p2", nil), // produced Void
  sql.Named("p3", 3),
)

YDB not accepts Void value for insert into Optional column
Special type NullType helps to accept nil from user and apply to YDB on INSERT queries

Metadata

Metadata

Labels

bugSomething isn't working

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions