--- a/contentstorage/castorage/src/casqlquery.cpp Mon Sep 13 13:26:33 2010 +0300
+++ b/contentstorage/castorage/src/casqlquery.cpp Mon Sep 20 10:22:22 2010 +0300
@@ -314,8 +314,15 @@
void CCaSqlQuery::BindTextL( TInt aParameterIndex,
const TDesC& aParameterValue )
{
- User::LeaveIfError( iStatement.BindText( aParameterIndex,
- aParameterValue ) );
+ if( aParameterValue.Length() )
+ {
+ User::LeaveIfError( iStatement.BindText( aParameterIndex,
+ aParameterValue ) );
+ }
+ else
+ {
+ User::LeaveIfError( iStatement.BindNull( aParameterIndex) );
+ }
}
// ---------------------------------------------------------------------------