Closed andreasnrb closed 1 year ago
Hi there! Our class extends wpdb
so it isn't missing the implementation, but it seems that the core implementation depends on one of the mysql functions which would raise an error. We need to override this with a value that returns a string in a similar format to mysqli_get_server_info
.
Feel free to open a PR, otherwise I'll try to address this soon.
The function call is just used to detect if MariaDb is used due to it not supporting table columns with ( ) as MySQL does. So any string will do I think. Returning SQLite3 is prudent I think. Did not seem that it should return MariaDb based on the SQLite docs.
Hi, I was facing the same issue. I fixed it by adding this small portion of code at the end of the class wpsqlitedb like @andreasnrb suggested.
/**
* Retrieves full database server information.
*
* @since 5.5.0
*
* @return string Server info on success, false on failure.
*/
public function db_server_info() {
return 'SQLite3';
}
The SQLite drop in is missing the implementation of function db_server_info() {}.