* [misc] refactor.

This commit is contained in:
qixinzhi
2024-09-06 09:06:59 +08:00
committed by 曹延义
parent 20797f0a48
commit 658be2c5f1
+5 -19
View File
@@ -314,31 +314,17 @@ class sqlparser
}
/**
* and condition.
* operatorCondition
*
* @param string $type
* @access public
* @return object
* @return void
*/
public function andCondition()
public function operatorCondition($type)
{
$condition = new PhpMyAdmin\SqlParser\Components\Condition();
$condition->isOperator = true;
$condition->expr = 'AND';
return $condition;
}
/**
* or condition.
*
* @access public
* @return object
*/
public function orCondition()
{
$condition = new PhpMyAdmin\SqlParser\Components\Condition();
$condition->isOperator = true;
$condition->expr = 'OR';
$condition->expr = strtoupper($type);
return $condition;
}