summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/Common/TDbCommandBuilder.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Data/Common/TDbCommandBuilder.php b/framework/Data/Common/TDbCommandBuilder.php
index 2c3578f0..c90b913c 100644
--- a/framework/Data/Common/TDbCommandBuilder.php
+++ b/framework/Data/Common/TDbCommandBuilder.php
@@ -293,7 +293,7 @@ class TDbCommandBuilder extends TComponent
{
$values = array_values($values);
for($i = 0, $max=count($values); $i<$max; $i++)
- $command->bindValue($i+1, $values[$i], $this->getPdoType($value));
+ $command->bindValue($i+1, $values[$i], $this->getPdoType($values[$i]));
}
else
{