diff --git a/library/think/db/Builder.php b/library/think/db/Builder.php index d761a4b5..abc51c1d 100644 --- a/library/think/db/Builder.php +++ b/library/think/db/Builder.php @@ -625,6 +625,9 @@ abstract class Builder */ protected function parseComment($comment) { + if (false !== strpos($comment, '*/')) { + $comment = strstr($coment, '*/', true); + } return !empty($comment) ? ' /* ' . $comment . ' */' : ''; }