From bcf92159000e1f297760d8eb761dbcf10586de9d Mon Sep 17 00:00:00 2001 From: WeakSun Date: Fri, 1 Jul 2016 13:33:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3MYSQL=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93UPDATE=20JOIN=E8=AF=AD=E5=8F=A5=E8=AF=AD=E6=B3=95?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JOIN应该在SET之前 --- library/think/db/builder/Mysql.php | 1 + 1 file changed, 1 insertion(+) diff --git a/library/think/db/builder/Mysql.php b/library/think/db/builder/Mysql.php index 3f98adbe..d7427af7 100644 --- a/library/think/db/builder/Mysql.php +++ b/library/think/db/builder/Mysql.php @@ -18,6 +18,7 @@ use think\db\Builder; */ class Mysql extends Builder { + protected $updateSql = 'UPDATE %TABLE% %JOIN% SET %SET% %WHERE% %ORDER%%LIMIT% %LOCK%%COMMENT%'; /** * 字段和表名处理