Commit 100a59c9 by Andrew Ellis

added trim() for the sql statement

parent e256a66b
...@@ -175,6 +175,8 @@ class Connection { ...@@ -175,6 +175,8 @@ class Connection {
*/ */
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
...@@ -321,4 +323,4 @@ class Connection { ...@@ -321,4 +323,4 @@ class Connection {
return $this->table($method); return $this->table($method);
} }
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment