sql compare lhs must be col
This commit is contained in:
@@ -5,16 +5,16 @@ namespace Driver\SQL\Condition;
|
||||
class Compare extends Condition {
|
||||
|
||||
private string $operator;
|
||||
private $lhs;
|
||||
private string $column;
|
||||
private $value;
|
||||
|
||||
public function __construct($col, $val, string $operator = '=') {
|
||||
public function __construct(string $col, $val, string $operator = '=') {
|
||||
$this->operator = $operator;
|
||||
$this->lhs = $col;
|
||||
$this->column = $col;
|
||||
$this->value = $val;
|
||||
}
|
||||
|
||||
public function getLHS() { return $this->lhs; }
|
||||
public function getColumn(): string { return $this->column; }
|
||||
public function getValue() { return $this->value; }
|
||||
public function getOperator(): string { return $this->operator; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user