[wp-trac] [WordPress Trac] #30257: wpdb::get_var() returns NULL for existing values that are empty strings
WordPress Trac
noreply at wordpress.org
Wed Nov 5 13:41:15 UTC 2014
#30257: wpdb::get_var() returns NULL for existing values that are empty strings
--------------------------+------------------------------
Reporter: tyxla | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+------------------------------
Changes (by jdgrimes):
* keywords: => has-patch
Comment:
This behavior goes all the way back to when EZ SQL was added in [112].
That means that there is 11 years of code built on top of this, and
expecting this behavior. There are even
[https://core.trac.wordpress.org/browser/trunk/src/wp-
includes/option.php#L80 places in core that use get_row() instead] to get
around this "feature". It might too late to turn back now.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30257#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list