Make WordPress Core

Opened 12 months ago

Last modified 12 months ago

#40037 new enhancement

Add ability to ask wpdb for full db server info

Reported by: clarinetlord Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: Database Keywords: has-patch needs-unit-tests
Focuses: Cc:


Currently, calling wpdb::db_version() only returns the version number of the db server. It would be useful to have a separate method called db_server_info() that returned the full string with vendor and version. That way one wouldn't have to use the raw sql function mysqli_get_server_info() outside of wpdb and allows wpdb to properly abstract this functionality.

Attachments (1)

Added_method_to_wpdb_to_get_full_server_info.patch (1.6 KB) - added by clarinetlord 12 months ago.

Download all attachments as: .zip

Change History (2)

#1 @clarinetlord
12 months ago

  • Keywords has-patch needs-unit-tests added
Note: See TracTickets for help on using tickets.