summaryrefslogtreecommitdiff
path: root/framework/Data/SqlMap/Statements
diff options
context:
space:
mode:
authorxue <>2007-05-13 23:37:10 +0000
committerxue <>2007-05-13 23:37:10 +0000
commit5ccc4dc816be8a6fceb7f70ea843a3fe3599ea52 (patch)
treebc194be2047ac67e70fb89a6e7c9f4ed5f0c0823 /framework/Data/SqlMap/Statements
parent9e56a7e774589f41b5b536566bc24dfcff47c850 (diff)
fixed missing inclusion.
Diffstat (limited to 'framework/Data/SqlMap/Statements')
-rw-r--r--framework/Data/SqlMap/Statements/TPreparedCommand.php3
1 files changed, 2 insertions, 1 deletions
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
}