Skip to content

Where with bool or bool? is compiled as "true" or "false" rather than "0" or "1" #396

Description

@benmccallum

Repro
Go here: https://sqlkata.com/playground/sqlserver
Paste this:

bool? lol = true;
bool lol2 = true;
var query = new Query("Users").Where("lol", lol).Where("lol2", lol2);

SQL Server doesn't support true/false, only 0 or 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions