[DBIx-Class-Devel] [dbsrgits/sql-abstract] Do not replace the literal string '0' with '' (#14)

fabzzap notifications at github.com
Fri Apr 6 09:16:25 GMT 2018


In Perl, the literal string '0' is false.

Because of this, if one uses the scalar ref \"0", SQL::Abstract considers it a 'false' string and replaces it with an empty string. This patch avoids that, every string that at least one non-whitespache character is used.
You can view, comment on, or merge this pull request online at:

  https://github.com/dbsrgits/sql-abstract/pull/14

-- Commit Summary --

  * Do not replace the literal string '0' with ''

-- File Changes --

    M lib/SQL/Abstract.pm (2)
    M t/02where.t (5)

-- Patch Links --

https://github.com/dbsrgits/sql-abstract/pull/14.patch
https://github.com/dbsrgits/sql-abstract/pull/14.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/sql-abstract/pull/14
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20180406/547a0bc5/attachment.htm>


More information about the DBIx-Class-Devel mailing list