diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 0f542ec8..bf883a83 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -1051,7 +1051,8 @@ class Query */ public function lock($lock = false) { - $this->options['lock'] = $lock; + $this->options['lock'] = $lock; + $this->options['master'] = true; return $this; }