Merge pull request #614 from awellis13/feature/trim-sql-for-query
Add trim() to Connection::query()
This commit is contained in:
commit
e85ca96e38
|
@ -175,6 +175,8 @@ public function first($sql, $bindings = array())
|
||||||
*/
|
*/
|
||||||
public function query($sql, $bindings = array())
|
public function query($sql, $bindings = array())
|
||||||
{
|
{
|
||||||
|
$sql = trim($sql);
|
||||||
|
|
||||||
list($statement, $result) = $this->execute($sql, $bindings);
|
list($statement, $result) = $this->execute($sql, $bindings);
|
||||||
|
|
||||||
// The result we return depends on the type of query executed against the
|
// The result we return depends on the type of query executed against the
|
||||||
|
|
Loading…
Reference in New Issue