From 44a846b6c1989fdbf5f5b921799134ae045769d6 Mon Sep 17 00:00:00 2001 From: xue <> Date: Thu, 19 Apr 2007 01:49:24 +0000 Subject: fixed a typo in TDbCommandBuilder --- framework/Data/Common/TDbCommandBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Data/Common') 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 { -- cgit v1.2.3