From 5ccc4dc816be8a6fceb7f70ea843a3fe3599ea52 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 13 May 2007 23:37:10 +0000 Subject: fixed missing inclusion. --- framework/Data/SqlMap/Statements/TPreparedCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/Data/SqlMap/Statements') diff --git a/framework/Data/SqlMap/Statements/TPreparedCommand.php b/framework/Data/SqlMap/Statements/TPreparedCommand.php index 5733b14a..4ca41d73 100644 --- a/framework/Data/SqlMap/Statements/TPreparedCommand.php +++ b/framework/Data/SqlMap/Statements/TPreparedCommand.php @@ -11,6 +11,7 @@ */ Prado::using('System.Data.Common.TDbMetaData'); +Prado::using('System.Data.Common.TDbCommandBuilder'); /** * TPreparedCommand class. @@ -47,7 +48,7 @@ class TPreparedCommand $property = $statement->parameterMap()->getProperty($i); $value = $statement->parameterMap()->getPropertyValue($registry,$property, $parameterObject); if($property->getDbType()=='') - $command->bindValue($i+1,$value, TDbCommandBuilder::getPdoType($value)); + $command->bindValue($i+1,$value, TDbCommandBuilder::getPdoType($value)); else $command->bindValue($i+1,$value, constant($property->getDbType())); //assumes PDO types, e.g. PDO::PARAM_INT } -- cgit v1.2.3