示例#1
0
 public function __construct($msg = '', $code = 0, Mzax_Db_Select $select = null, Exception $previous = null)
 {
     parent::__construct($msg, $code, $previous);
     $this->select = $select;
     if ($select) {
         $this->bindings = $select->getBindings();
     }
 }
示例#2
0
 /**
  * Allow to use temporary tabes for this filter
  * result
  * 
  * @return string
  */
 public function assemble()
 {
     if (!self::$_assambleAll && ($sql = $this->createTemporaryTable())) {
         return $sql;
     } else {
         return parent::assemble();
     }
 }