3 class ezSQL_mysql_YOURLS extends ezSQL_mysql {
6 * Return MySQL server version
10 function mysql_version() {
11 return mysql_get_server_info( $this->dbh ) ;
15 * Comply to YOURLS debug mode
19 function __construct( $user, $pass, $name, $host ) {
20 $this->show_errors = defined( 'YOURLS_DEBUG' ) && YOURLS_DEBUG;
21 parent::__construct( $user, $pass, $name, $host );
27 * Added to the original function: logging of all queries
31 function query( $query ) {
33 // Keep history of all queries
34 $this->debug_log[] = $query;
37 return parent::query( $query );