Skip to content

Commit

Permalink
继续修改sql;
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowsoft committed Dec 5, 2024
1 parent 576838f commit 61b998d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions zb_system/function/lib/sql/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,10 +776,10 @@ protected function buildLimit()

if (isset($this->option['limit'])) {
if ($this->option['limit'] > 0) {
$sql[] = "LIMIT " . str_replace(array('"',"'"), '', $this->option['limit']);
$sql[] = "LIMIT " . str_replace(array('"',"'",';'), '', $this->option['limit']);

if (isset($this->option['offset'])) {
$sql[] = "OFFSET " . str_replace(array('"',"'"), '', $this->option['offset']);
$sql[] = "OFFSET " . str_replace(array('"',"'",';'), '', $this->option['offset']);
}
}
}
Expand Down

0 comments on commit 61b998d

Please sign in to comment.