Skip to content

Update query with type boolean #648

@luandnh

Description

@luandnh

Hi,
I'm having a problem when updating a row with column type of boolean, a query that casts a value to NULL when that value is false.

Active bool `json:"active" bun:"active,type:bool,default:'1',nullzero"`
UPDATE "campaign"
SET "campaign_name" = 'Autodialer 01', "active" = NULL
WHERE 
(campaign_id = 'vaseg')

Bun version 1.1.7

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