From 8c1e6f70bb47201c8978ffe0904d9cf16773f693 Mon Sep 17 00:00:00 2001 From: kwan <303198069@qq.com> Date: Tue, 10 Jan 2017 03:23:49 +0800 Subject: [PATCH] fix #8 --- src/Think/Model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Think/Model.php b/src/Think/Model.php index 20bbb9b..ffd08d4 100644 --- a/src/Think/Model.php +++ b/src/Think/Model.php @@ -1095,7 +1095,7 @@ public function setInc($field, $step = 1, $lazyTime = 0) } } - return $this->setField($field, ['exp', $field . '+' . $step]); + return $this->setField($field, ['exp', '`' . $field . '`+' . $step]); } /** @@ -1121,7 +1121,7 @@ public function setDec($field, $step = 1, $lazyTime = 0) } } - return $this->setField($field, ['exp', $field . '-' . $step]); + return $this->setField($field, ['exp', '`' . $field . '`-' . $step]); } /**