[wp-trac] [WordPress Trac] #30257: wpdb::get_var() returns NULL for existing values that are empty strings
WordPress Trac
noreply at wordpress.org
Sat Nov 8 23:26:05 UTC 2014
#30257: wpdb::get_var() returns NULL for existing values that are empty strings
--------------------------+----------------------
Reporter: tyxla | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Database | Version: 0.71
Severity: normal | Resolution: wontfix
Keywords: has-patch | Focuses:
--------------------------+----------------------
Changes (by pento):
* status: new => closed
* version: trunk => 0.71
* resolution: => wontfix
* milestone: Awaiting Review =>
Comment:
Thanks for the bug report, tyxla!
I agree that this behaviour isn't ideal, and it's clearly inconsistent
with the behaviour of the other `get_*` methods (except for `get_col()`,
which calls `get_var()`).
However, due to the age of this behaviour, and the potential to introduce
subtle bugs into plugins that expect it, this isn't really a thing we can
fix.
If you run into any other behaviour you think should be fixed, please
don't hesitate to open a new ticket - we're always happy to discuss these
things, even if they're not something we can change. :-)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30257#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list