Skip to content

Values in WHERE conditions are returned as 'NULL' when they shouldn't #124

Open

Description

@adrienlabelle

protected function writeNullSqlString($value)

This piece of code will replace the following tested values with 'NULL': '0', ''. which is incorrect. A NOT NULL column could be set to an empty string or a VARCHAR column can be set to '0' for example. IMHO the only valid mapping for 'NULL' is the null type.

Activity

  1. pthreat commented on Sep 19, 2022

    @pthreat

    I found this problem too, this is the reason why I forked this library to fix said issue

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions