added trim() for the sql statement
This commit is contained in:
parent
e256a66b18
commit
100a59c9c4
|
@ -175,6 +175,8 @@ public function first($sql, $bindings = array())
|
|||
*/
|
||||
public function query($sql, $bindings = array())
|
||||
{
|
||||
$sql = trim($sql);
|
||||
|
||||
list($statement, $result) = $this->execute($sql, $bindings);
|
||||
|
||||
// The result we return depends on the type of query executed against the
|
||||
|
@ -321,4 +323,4 @@ public function __call($method, $parameters)
|
|||
return $this->table($method);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue