persistentstorage/sql/SRC/Client/SqlStatementImpl.cpp
branchRCL_3
changeset 10 fa9941cf3867
parent 0 08ec8eefde2f
child 13 211563e4b919
child 17 55f2396f6d25
equal deleted inserted replaced
6:5ffdb8f2067f 10:fa9941cf3867
   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();