[wp-trac] [WordPress Trac] #61338: wpdb::prepare function null value convert to empty String
WordPress Trac
noreply at wordpress.org
Fri May 31 15:15:04 UTC 2024
#61338: wpdb::prepare function null value convert to empty String
--------------------------+-----------------------------
Reporter: mazharul78 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Database | Version: trunk
Severity: normal | Keywords: needs-patch
Focuses: |
--------------------------+-----------------------------
In WordPress core, there is an issue where prepare functions null values
convert to empty strings when interacting with the database. This causes
problems for database table columns defined with NOT NULL constraints,
leading to the insertion of empty strings instead of retaining null
values.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/61338>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list