From f17b163f832543c02c3eb238b10e9854d5edf992 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Sat, 1 Apr 2023 00:27:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SqlBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SqlBuilder.php b/SqlBuilder.php index b20c42d..26594d7 100644 --- a/SqlBuilder.php +++ b/SqlBuilder.php @@ -248,7 +248,7 @@ class SqlBuilder extends Component { $select = ''; if (($condition = $this->conditionToString()) != '') { - $select .= " WHERE ${$condition}"; + $select .= " WHERE $condition"; } if (count($this->query->attributes) > 0) { $select = strtr($select, $this->query->attributes);