예제 #1
0
 public function build(Sabel_Db_Statement $stmt)
 {
     $f = ++self::$counter;
     $t = ++self::$counter;
     $val = $this->value;
     $stmt->setBindValue("param{$f}", $val[0]);
     $stmt->setBindValue("param{$t}", $val[1]);
     $column = $this->getQuotedColumn($stmt);
     if ($this->isNot) {
         $column = "NOT " . $column;
     }
     return $column . " BETWEEN @param{$f}@ AND @param{$t}@";
 }
예제 #2
0
 public function build(Sabel_Db_Statement $stmt)
 {
     $num = ++self::$counter;
     $stmt->setBindValue("param{$num}", $this->value);
     $column = $this->getQuotedColumn($stmt);
     if ($this->isNot) {
         $column = "NOT " . $column;
     }
     return $column . " = @param{$num}@";
 }