equal
deleted
inserted
replaced
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 // --------------------------------------------------------------------------- |