[wp-trac] [WordPress Trac] #33501: Starting w/ WP4.2, upgrade scenario may fail for non-MySQL installs
WordPress Trac
noreply at wordpress.org
Wed Aug 26 02:21:26 UTC 2015
#33501: Starting w/ WP4.2, upgrade scenario may fail for non-MySQL installs
--------------------------+-----------------------
Reporter: RSkoon | Owner: pento
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Database | Version: 4.1.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+-----------------------
Comment (by pento):
Hey @RSkoon, you're totally welcome to write a patch!
For the `wp-db.php` part of the patch, just change the `false ===
$this->is_mysql` tests to `empty( $wpdb->is_mysql )`.
I think it'd be good to have some unit tests for this, too. If you're up
for writing some, check out `tests/phpunit/tests/db.php` as a place to add
them, I'd go with faking the DB drop-in behaviour by changing the value of
`$is_mysql` in the test.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33501#comment:20>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list