Skip to content

Commit

Permalink
fix #8
Browse files Browse the repository at this point in the history
  • Loading branch information
xcorp1986 committed Jan 9, 2017
1 parent 3f54c01 commit 8c1e6f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Think/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}

/**
Expand All @@ -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]);
}

/**
Expand Down

0 comments on commit 8c1e6f7

Please sign in to comment.