Explorar o código

Update:去掉调试信息

Jinhui Zhu %!s(int64=5) %!d(string=hai) anos
pai
achega
ff2da71ce4
Modificáronse 1 ficheiros con 1 adicións e 3 borrados
  1. 1 3
      src/Driver/ConnBase.php

+ 1 - 3
src/Driver/ConnBase.php

@@ -49,7 +49,6 @@ class ConnBase
 	public function getConnectionBySQL($sql)
 	{
 		$default = $this->prepare($sql);
-		echo "1.". $sql ."\n";
 		if (isset($this->_connections[$default])) return $this->_connections[$default];
 		switch ($default) {
 			case 'READ':
@@ -59,9 +58,8 @@ class ConnBase
                 $connection = $this->_connections['WRITE'] = $this->getWriteConnection();
 				break;
 		}
-
+        
         if(get_called_class() == 'Qii\Driver\Pdo\Connection'){
-            echo "2.". $sql ."\n";
             $connection->setAttribute(\PDO::MYSQL_ATTR_USE_BUFFERED_QUERY, true);
             $connection->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_WARNING);
             $connection->query('set names utf8');