equal
deleted
inserted
replaced
650 aDest.Zero(); |
650 aDest.Zero(); |
651 return err; |
651 return err; |
652 } |
652 } |
653 TPtr8 ptr(reinterpret_cast <TUint8*> (const_cast <TUint16*> (aDest.Ptr())), aDest.MaxLength() * sizeof(TUint16)); |
653 TPtr8 ptr(reinterpret_cast <TUint8*> (const_cast <TUint16*> (aDest.Ptr())), aDest.MaxLength() * sizeof(TUint16)); |
654 err = iSqlStmtSession.ReadColumnValue(aColumnIndex, ptr); |
654 err = iSqlStmtSession.ReadColumnValue(aColumnIndex, ptr); |
655 if(err == KErrNone || err == KErrOverflow) |
655 switch(err) |
656 { |
656 { |
657 aDest.SetLength(ptr.Length() / sizeof(TUint16)); |
657 case KErrNone: |
658 } |
658 case KErrOverflow: |
|
659 aDest.SetLength(ptr.Length() / sizeof(TUint16)); |
|
660 break; |
|
661 default: |
|
662 break; |
|
663 } |
659 } |
664 } |
660 else |
665 else |
661 { |
666 { |
662 TPtrC src = iColumnValBufIt.Text(); |
667 TPtrC src = iColumnValBufIt.Text(); |
663 TInt len = src.Length(); |
668 TInt len = src.Length(); |