Authored by ziy

添加SQL 执行方法

@@ -296,7 +296,13 @@ class Connection extends Root @@ -296,7 +296,13 @@ class Connection extends Root
296 return $stmt; 296 return $stmt;
297 } 297 }
298 298
299 - public function execute($sql, $parameterMap, $replaceMap) 299 + /**
  300 + * 执行SQL
  301 + * @param $sql
  302 + * @param $parameterMap
  303 + * @throws DebugException
  304 + */
  305 + public function execute($sql, array $parameterMap = array())
300 { 306 {
301 $this->_PDOConn = $conn = $this->connect(); 307 $this->_PDOConn = $conn = $this->connect();
302 $this->_PDOStatement = $stmt = $conn->prepare($sql); 308 $this->_PDOStatement = $stmt = $conn->prepare($sql);