Commit ef6c86fe authored by Guilherme Blanco's avatar Guilherme Blanco

Merge pull request #102 from kimhemsoe/mysql_fixes

Mysqli: Fixed that we never used provided type.
parents eb65d5af ca20f1e3
...@@ -99,7 +99,7 @@ class MysqliStatement implements \IteratorAggregate, Statement ...@@ -99,7 +99,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
} }
$this->_bindedValues[$column] =& $variable; $this->_bindedValues[$column] =& $variable;
$this->_bindedValues[0][$column - 1] = 's'; $this->_bindedValues[0][$column - 1] = $type;
return true; return true;
} }
...@@ -120,7 +120,7 @@ class MysqliStatement implements \IteratorAggregate, Statement ...@@ -120,7 +120,7 @@ class MysqliStatement implements \IteratorAggregate, Statement
$this->_values[$param] = $value; $this->_values[$param] = $value;
$this->_bindedValues[$param] =& $this->_values[$param]; $this->_bindedValues[$param] =& $this->_values[$param];
$this->_bindedValues[0][$param - 1] = 's'; $this->_bindedValues[0][$param - 1] = $type;
return true; return true;
} }
......
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