We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa36063 commit 040e014Copy full SHA for 040e014
wp-includes/sqlite-ast/class-wp-pdo-mysql-on-sqlite.php
@@ -849,7 +849,7 @@ public function get_connection(): WP_SQLite_Connection {
849
* @return string SQLite engine version as a string.
850
*/
851
public function get_sqlite_version(): string {
852
- return $this->connection->query( 'SELECT SQLITE_VERSION()' )->fetchColumn();
+ return $this->connection->get_pdo()->getAttribute( PDO::ATTR_SERVER_VERSION );
853
}
854
855
/**
0 commit comments