Merge pull request #614 from awellis13/feature/trim-sql-for-query

Add trim() to Connection::query()
This commit is contained in:
Taylor Otwell
2012-05-04 06:52:22 -07:00

View File

@@ -175,6 +175,8 @@ class Connection {
*/
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