Commit f46a3dea authored by Taylor Otwell's avatar Taylor Otwell

Clean-up the default database grammar.

parent 466f0549
...@@ -161,7 +161,9 @@ class Grammar { ...@@ -161,7 +161,9 @@ class Grammar {
*/ */
protected function where($where) protected function where($where)
{ {
return $this->wrap($where['column']).' '.$where['operator'].' '.$this->parameter($where['value']); $parameter = $this->parameter($where['value']);
return $this->wrap($where['column']).' '.$where['operator'].' '.$parameter;
} }
/** /**
...@@ -172,7 +174,9 @@ class Grammar { ...@@ -172,7 +174,9 @@ class Grammar {
*/ */
protected function where_in($where) protected function where_in($where)
{ {
return $this->wrap($where['column']).' IN ('.$this->parameterize($where['values']).')'; $parameters = $this->parameterize($where['values']);
return $this->wrap($where['column']).' IN ('.$parameters.')';
} }
/** /**
...@@ -183,7 +187,9 @@ class Grammar { ...@@ -183,7 +187,9 @@ class Grammar {
*/ */
protected function where_not_in($where) protected function where_not_in($where)
{ {
return $this->wrap($where['column']).' NOT IN ('.$this->parameterize($where['values']).')'; $parameters = $this->parameterize($where['values']);
return $this->wrap($where['column']).' NOT IN ('.$parameters.')';
} }
/** /**
......
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