diff options
Diffstat (limited to 'src/Statement.php')
-rw-r--r-- | src/Statement.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Statement.php b/src/Statement.php index 41cf3e6..c88722e 100644 --- a/src/Statement.php +++ b/src/Statement.php @@ -173,12 +173,12 @@ abstract class Statement // Checking if the name of the clause should be added. if ($type & 2) { - $query .= $name . ' '; + $query = trim($query) . ' ' . $name; } // Checking if the result of the builder should be added. if ($type & 1) { - $query .= $class::build($this->$field) . ' '; + $query = trim($query) . ' ' . $class::build($this->$field); } } |