Automattic / HyperDB

HyperDB is an advanced database class that supports replication, failover, load balancing, and partitioning.
105 stars 22 forks source link

`$wpdb->get_col_length` always return false #160

Open amiut opened 1 month ago

amiut commented 1 month ago

On presence of HyperDB drop-in, $wpdb::get_col_length() always returns false. This is because the get_col_length() method does an early-return if $wpdb->is_mysql is empty (please see here). the is_mysql property is never set in hyperdb, which causes this issue, while it is hard-coded in wpdb.