contentstorage/castorage/src/casqlquery.cpp
changeset 124 e36b2f4799c0
parent 104 9b022b1f357c
equal deleted inserted replaced
121:0b3699f6c654 124:e36b2f4799c0
   312 // ---------------------------------------------------------------------------
   312 // ---------------------------------------------------------------------------
   313 //
   313 //
   314 void CCaSqlQuery::BindTextL( TInt aParameterIndex,
   314 void CCaSqlQuery::BindTextL( TInt aParameterIndex,
   315         const TDesC& aParameterValue )
   315         const TDesC& aParameterValue )
   316     {
   316     {
   317     User::LeaveIfError( iStatement.BindText( aParameterIndex,
   317     if( aParameterValue.Length() )
   318             aParameterValue ) );
   318         {
       
   319         User::LeaveIfError( iStatement.BindText( aParameterIndex, 
       
   320                 aParameterValue ) );
       
   321         }
       
   322     else
       
   323         {
       
   324         User::LeaveIfError( iStatement.BindNull( aParameterIndex) );
       
   325         }
   319     }
   326     }
   320 
   327 
   321 // ---------------------------------------------------------------------------
   328 // ---------------------------------------------------------------------------
   322 //
   329 //
   323 // ---------------------------------------------------------------------------
   330 // ---------------------------------------------------------------------------