Home | History | Annotate | Download | only in orig

Lines Matching defs:pRec

64585 static void applyNumericAffinity(Mem *pRec){
64586 if( (pRec->flags & (MEM_Real|MEM_Int))==0 ){
64589 u8 enc = pRec->enc;
64590 if( (pRec->flags&MEM_Str)==0 ) return;
64591 if( sqlite3AtoF(pRec->z, &rValue, pRec->n, enc)==0 ) return;
64592 if( 0==sqlite3Atoi64(pRec->z, &iValue, pRec->n, enc) ){
64593 pRec->u.i = iValue;
64594 pRec->flags |= MEM_Int;
64596 pRec->r = rValue;
64597 pRec->flags |= MEM_Real;
64608 ** Try to convert pRec to an integer representation or a
64615 ** Convert pRec to a text representation.
64618 ** No-op. pRec is unchanged.
64621 Mem *pRec, /* The value to apply affinity to */
64630 if( 0==(pRec->flags&MEM_Str) && (pRec->flags&(MEM_Real|MEM_Int)) ){
64631 sqlite3VdbeMemStringify(pRec, enc);
64633 pRec->flags &= ~(MEM_Real|MEM_Int);
64637 applyNumericAffinity(pRec);
64638 if( pRec->flags & MEM_Real ){
64639 sqlite3VdbeIntegerAffinity(pRec);
65101 Mem *pRec; /* The new record */
65343 Mem *pRec;
67342 Mem *pRec; /* The new record */
67392 for(u.ap.pRec=u.ap.pData0; u.ap.pRec<=u.ap.pLast; u.ap.pRec++){
67393 assert( memIsValid(u.ap.pRec) );
67395 applyAffinity(u.ap.pRec, u.ap.zAffinity[u.ap.pRec-u.ap.pData0], encoding);
67397 if( u.ap.pRec->flags&MEM_Zero && u.ap.pRec->n>0 ){
67398 sqlite3VdbeMemExpandBlob(u.ap.pRec);
67400 u.ap.serial_type = sqlite3VdbeSerialType(u.ap.pRec, u.ap.file_format);
67404 if( u.ap.pRec->flags & MEM_Zero ){
67407 u.ap.nZero += u.ap.pRec->u.nZero;
67435 for(u.ap.pRec=u.ap.pData0; u.ap.pRec<=u.ap.pLast; u.ap.pRec++){
67436 u.ap.serial_type = sqlite3VdbeSerialType(u.ap.pRec, u.ap.file_format);
67439 for(u.ap.pRec=u.ap.pData0; u.ap.pRec<=u.ap.pLast; u.ap.pRec++){ /* serial data */
67440 u.ap.i += sqlite3VdbeSerialPut(&u.ap.zNewRecord[u.ap.i], (int)(u.ap.nByte-u.ap.i), u.ap.pRec,u.ap.file_format);
70302 Mem *pRec;
70309 u.cf.pRec = &aMem[pOp->p2];
70312 for(u.cf.i=0; u.cf.i<u.cf.n; u.cf.i++, u.cf.pRec++){
70313 assert( memIsValid(u.cf.pRec) );
70314 u.cf.apVal[u.cf.i] = u.cf.pRec;
70315 memAboutToChange(p, u.cf.pRec);
70316 sqlite3VdbeMemStoreType(u.cf.pRec);