[wp-trac] [WordPress Trac] #58584: Telemetry / Stats: Send the raw DB version identifier, and/or server type.

WordPress Trac noreply at wordpress.org
Wed Jun 21 13:11:08 UTC 2023


#58584: Telemetry / Stats: Send the raw DB version identifier, and/or server type.
-----------------------------+------------------------------
 Reporter:  dd32             |       Owner:  (none)
     Type:  enhancement      |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:
-----------------------------+------------------------------

Comment (by johnbillion):

 In my Query Monitor plugin I switched to using `$wpdb->db_server_info()`
 instead of `$wpdb->db_version()` a long time ago because of the parsing
 problems with some version numbers. `SELECT VERSION()` is used as a
 fallback if the value is empty, which I did see once.

 I also use the `get_class( $dbh )` method to get a name that's generally
 going to be representative of the database driver. It operates on the
 handler class so it shouldn't matter if there's a database dropin class in
 use.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/58584#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list