diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Data/SqlMap/Statements/TPreparedCommand.php | 3 |
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
}
|