Skip to content

[]byte convert to NULL #144

Closed
Closed
@Terry-Mao

Description

@Terry-Mao

When we use binary as a column type, how to insert a NULL value for the column?
code :
db.Exec("INSERT INTO t(a) VALUES(?)", a);

in my opion, when a is nil then insert a NULL value, but now insert a 0x0000...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions