Skip to content

Instantly share code, notes, and snippets.

Masayuki Ietomi jyokyoku

Block or report user

Report or block jyokyoku

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@jyokyoku
jyokyoku / mysql_log.php
Created Jul 9, 2011
CakePHP DboMysqlLog
View mysql_log.php
<?php
App::import('Datasource', 'DboSource');
App::import('Datasource', 'DboMysql');
class DboMysqlLog extends DboMysql
{
function execute($sql, $options = array()) {
$defaults = array('log' => ($this->fullDebug || Configure::read('Sql.log')));
$options = array_merge($defaults, $options);
You can’t perform that action at this time.