Lines Matching refs:flags
173 pMem->flags = MEM_Null; in AggInsert()
196 #define Stringify(P) if(((P)->flags & MEM_Str)==0){hardStringify(P);}
198 int fg = pStack->flags; in hardStringify()
208 pStack->flags = MEM_Str | MEM_Short; in hardStringify()
219 #define Dynamicify(P) (((P)->flags & MEM_Dyn)==0 ? hardDynamicify(P):0)
221 int fg = pStack->flags; in hardDynamicify()
231 pStack->flags |= MEM_Dyn; in hardDynamicify()
247 if( ((P)->flags&MEM_Ephem)!=0 && hardDeephem(P) ){ goto no_mem;}
250 assert( (pStack->flags & MEM_Ephem)!=0 ); in hardDeephem()
255 pStack->flags &= ~MEM_Ephem; in hardDeephem()
256 pStack->flags |= MEM_Dyn; in hardDeephem()
264 #define Release(P) if((P)->flags&MEM_Dyn){ sqliteFree((P)->z); }
315 #define Integerify(P) if(((P)->flags&MEM_Int)==0){ hardIntegerify(P); }
317 if( pStack->flags & MEM_Real ){ in hardIntegerify()
320 }else if( pStack->flags & MEM_Str ){ in hardIntegerify()
326 pStack->flags = MEM_Int; in hardIntegerify()
335 #define Realify(P) if(((P)->flags&MEM_Real)==0){ hardRealify(P); }
337 if( pStack->flags & MEM_Str ){ in hardRealify()
339 }else if( pStack->flags & MEM_Int ){ in hardRealify()
344 pStack->flags |= MEM_Real; in hardRealify()
451 if( db->flags & SQLITE_Interrupt ) goto abort_due_to_interrupt;
684 pTos->flags = MEM_Int; in sqliteVdbeExec()
687 pTos->flags |= MEM_Str | MEM_Static; in sqliteVdbeExec()
702 pTos->flags = MEM_Null; in sqliteVdbeExec()
706 pTos->flags = MEM_Str | MEM_Static; in sqliteVdbeExec()
726 pTos->flags = MEM_Str | MEM_Static; in sqliteVdbeExec()
728 pTos->flags = MEM_Null; in sqliteVdbeExec()
764 if( pTos->flags & MEM_Str ){ in sqliteVdbeExec()
765 if( pOp->p2 && (pTos->flags & (MEM_Dyn|MEM_Ephem)) ){ in sqliteVdbeExec()
766 pTos->flags &= ~MEM_Dyn; in sqliteVdbeExec()
767 pTos->flags |= MEM_Ephem; in sqliteVdbeExec()
768 }else if( pTos->flags & MEM_Short ){ in sqliteVdbeExec()
771 }else if( (pTos->flags & MEM_Static)==0 ){ in sqliteVdbeExec()
775 pTos->flags &= ~(MEM_Static|MEM_Ephem|MEM_Short); in sqliteVdbeExec()
776 pTos->flags |= MEM_Dyn; in sqliteVdbeExec()
802 assert( (pFrom->flags & MEM_Ephem)==0 ); in sqliteVdbeExec()
803 if( pFrom->flags & MEM_Short ){ in sqliteVdbeExec()
804 assert( pFrom->flags & MEM_Str ); in sqliteVdbeExec()
810 if( pTos->flags & MEM_Short ){ in sqliteVdbeExec()
811 assert( pTos->flags & MEM_Str ); in sqliteVdbeExec()
831 if( pTo->flags & MEM_Short ){ in sqliteVdbeExec()
872 if( pCol->flags & MEM_Null ){ in sqliteVdbeExec()
918 if( pTerm->flags & MEM_Null ){ in sqliteVdbeExec()
931 pTos->flags = MEM_Null; in sqliteVdbeExec()
939 assert( pTerm->flags & MEM_Str ); in sqliteVdbeExec()
953 pTos->flags = MEM_Str|MEM_Dyn; in sqliteVdbeExec()
1011 if( ((pTos->flags | pNos->flags) & MEM_Null)!=0 ){ in sqliteVdbeExec()
1015 pTos->flags = MEM_Null; in sqliteVdbeExec()
1016 }else if( (pTos->flags & pNos->flags & MEM_Int)==MEM_Int ){ in sqliteVdbeExec()
1039 pTos->flags = MEM_Int; in sqliteVdbeExec()
1067 pTos->flags = MEM_Real; in sqliteVdbeExec()
1075 pTos->flags = MEM_Null; in sqliteVdbeExec()
1097 if( pArg->flags & MEM_Null ){ in sqliteVdbeExec()
1105 ctx.s.flags = MEM_Null; in sqliteVdbeExec()
1115 if( pTos->flags & MEM_Short ){ in sqliteVdbeExec()
1120 (pTos->flags & MEM_Str)!=0 ? pTos->z : "user function error", (char*)0); in sqliteVdbeExec()
1162 if( (pTos->flags | pNos->flags) & MEM_Null ){ in sqliteVdbeExec()
1165 pTos->flags = MEM_Null; in sqliteVdbeExec()
1179 assert( (pTos->flags & MEM_Dyn)==0 ); in sqliteVdbeExec()
1180 assert( (pNos->flags & MEM_Dyn)==0 ); in sqliteVdbeExec()
1184 pTos->flags = MEM_Int; in sqliteVdbeExec()
1215 if( (pTos->flags & (MEM_Int|MEM_Real))==0 in sqliteVdbeExec()
1216 && ((pTos->flags & MEM_Str)==0 || sqliteIsNumber(pTos->z)==0) ){ in sqliteVdbeExec()
1222 if( pTos->flags & MEM_Int ){ in sqliteVdbeExec()
1232 pTos->flags = MEM_Int; in sqliteVdbeExec()
1249 if( pTos->flags & MEM_Int ){ in sqliteVdbeExec()
1251 }else if( pTos->flags & MEM_Real ){ in sqliteVdbeExec()
1258 }else if( pTos->flags & MEM_Str ){ in sqliteVdbeExec()
1277 pTos->flags = MEM_Int; in sqliteVdbeExec()
1412 ft = pTos->flags; in sqliteVdbeExec()
1413 fn = pNos->flags; in sqliteVdbeExec()
1420 pTos->flags = MEM_Null; in sqliteVdbeExec()
1448 pTos->flags = MEM_Int; in sqliteVdbeExec()
1568 if( (pNos->flags | pTos->flags) & MEM_Null ){ in sqliteVdbeExec()
1574 pTos->flags = MEM_Null; in sqliteVdbeExec()
1600 pTos->flags = MEM_Int; in sqliteVdbeExec()
1624 if( pTos->flags & MEM_Null ){ in sqliteVdbeExec()
1630 if( pNos->flags & MEM_Null ){ in sqliteVdbeExec()
1646 pTos->flags = MEM_Null; in sqliteVdbeExec()
1649 pTos->flags = MEM_Int; in sqliteVdbeExec()
1669 if( pTos->flags & MEM_Real ){ in sqliteVdbeExec()
1674 pTos->flags = MEM_Real; in sqliteVdbeExec()
1675 }else if( pTos->flags & MEM_Int ){ in sqliteVdbeExec()
1680 pTos->flags = MEM_Int; in sqliteVdbeExec()
1681 }else if( pTos->flags & MEM_Null ){ in sqliteVdbeExec()
1689 pTos->flags = MEM_Real; in sqliteVdbeExec()
1702 if( pTos->flags & MEM_Null ) break; /* Do nothing to NULLs */ in sqliteVdbeExec()
1706 pTos->flags = MEM_Int; in sqliteVdbeExec()
1718 if( pTos->flags & MEM_Null ) break; /* Do nothing to NULLs */ in sqliteVdbeExec()
1722 pTos->flags = MEM_Int; in sqliteVdbeExec()
1759 if( pTos->flags & MEM_Null ){ in sqliteVdbeExec()
1766 assert( (pTos->flags & MEM_Dyn)==0 ); in sqliteVdbeExec()
1786 if( pTerm->flags & MEM_Null ){ in sqliteVdbeExec()
1806 for(i=0; i<cnt && (pTos[1+i-cnt].flags & MEM_Null)==0; i++){} in sqliteVdbeExec()
1868 if( pRec->flags & MEM_Null ){ in sqliteVdbeExec()
1904 if( (pRec->flags & MEM_Null)==0 ){ in sqliteVdbeExec()
1921 if( (pRec->flags & MEM_Null)==0 ){ in sqliteVdbeExec()
1933 pTos->flags = MEM_Str | MEM_Short; in sqliteVdbeExec()
1937 pTos->flags = MEM_Str | MEM_Dyn; in sqliteVdbeExec()
2031 int flags = pRec->flags; in sqliteVdbeExec() local
2034 if( flags & MEM_Null ){ in sqliteVdbeExec()
2039 pRec->flags &= ~(MEM_Int|MEM_Real); in sqliteVdbeExec()
2041 }else if( (flags & (MEM_Real|MEM_Int))!=0 || sqliteIsNumber(pRec->z) ){ in sqliteVdbeExec()
2042 if( (flags & (MEM_Real|MEM_Int))==MEM_Int ){ in sqliteVdbeExec()
2044 }else if( (flags & (MEM_Real|MEM_Int))==0 ){ in sqliteVdbeExec()
2052 pRec->flags = MEM_Real; in sqliteVdbeExec()
2073 if( pRec->flags & MEM_Null ){ in sqliteVdbeExec()
2076 }else if( pRec->flags==MEM_Real ){ in sqliteVdbeExec()
2081 assert( pRec->flags & MEM_Str ); in sqliteVdbeExec()
2105 pTos->flags = MEM_Str | MEM_Short; in sqliteVdbeExec()
2108 pTos->flags = MEM_Str | MEM_Dyn; in sqliteVdbeExec()
2128 assert( pTos->flags & (MEM_Dyn|MEM_Short) ); in sqliteVdbeExec()
2279 pTos->flags = MEM_Int; in sqliteVdbeExec()
2556 if( pTos->flags & MEM_Int ){ in sqliteVdbeExec()
2748 pTos->flags = MEM_Int; in sqliteVdbeExec()
2773 assert( pTos->flags & MEM_Int ); in sqliteVdbeExec()
2889 pTos->flags = MEM_Int; in sqliteVdbeExec()
2933 assert( pNos->flags & MEM_Int ); in sqliteVdbeExec()
2944 if( pTos->flags & MEM_Null ){ in sqliteVdbeExec()
2948 assert( pTos->flags & MEM_Str ); in sqliteVdbeExec()
2959 if( pTos->flags & MEM_Dyn ){ in sqliteVdbeExec()
2961 pTos->flags = MEM_Null; in sqliteVdbeExec()
3062 pTos->flags = MEM_Null; in sqliteVdbeExec()
3067 pTos->flags = MEM_Null; in sqliteVdbeExec()
3076 pTos->flags = MEM_Str | MEM_Short; in sqliteVdbeExec()
3081 pTos->flags = MEM_Str | MEM_Dyn; in sqliteVdbeExec()
3092 pTos->flags = MEM_Str|MEM_Ephem; in sqliteVdbeExec()
3094 pTos->flags = MEM_Null; in sqliteVdbeExec()
3132 assert( pTos[i].flags & MEM_Str ); in sqliteVdbeExec()
3158 pTos->flags = MEM_Null; in sqliteVdbeExec()
3202 pTos->flags = MEM_Null; in sqliteVdbeExec()
3204 pTos->flags = MEM_Str | MEM_Ephem; in sqliteVdbeExec()
3208 pTos->flags = MEM_Str | MEM_Short; in sqliteVdbeExec()
3213 pTos->flags = MEM_Str | MEM_Dyn; in sqliteVdbeExec()
3246 pTos->flags = MEM_Null; in sqliteVdbeExec()
3254 pTos->flags = MEM_Int; in sqliteVdbeExec()
3290 pTos->flags = MEM_Str | MEM_Dyn; in sqliteVdbeExec()
3293 pTos->flags = MEM_Str | MEM_Short; in sqliteVdbeExec()
3437 assert( pTos->flags & MEM_Str ); in sqliteVdbeExec()
3484 assert( pTos->flags & MEM_Str ); in sqliteVdbeExec()
3520 pTos->flags = MEM_Null; in sqliteVdbeExec()
3525 pTos->flags = MEM_Int; in sqliteVdbeExec()
3528 pTos->flags = MEM_Null; in sqliteVdbeExec()
3604 assert( pTos->flags & MEM_Str ); in sqliteVdbeExec()
3692 pTos->flags = MEM_Int; in sqliteVdbeExec()
3696 pTos->flags = MEM_Null; in sqliteVdbeExec()
3743 pTos->flags = MEM_Str | MEM_Static; in sqliteVdbeExec()
3747 pTos->flags = MEM_Str | MEM_Dyn; in sqliteVdbeExec()
3814 pTos->flags = MEM_Int; in sqliteVdbeExec()
3923 assert( pTos->flags & MEM_Dyn ); in sqliteVdbeExec()
3926 assert( pNos->flags & MEM_Dyn ); in sqliteVdbeExec()
3952 if( (pRec->flags & MEM_Null)==0 ){ in sqliteVdbeExec()
3962 if( pRec->flags & MEM_Null ){ in sqliteVdbeExec()
3974 pTos->flags = MEM_Str | MEM_Dyn; in sqliteVdbeExec()
4004 if( pRec->flags & MEM_Null ){ in sqliteVdbeExec()
4016 if( pRec->flags & MEM_Null ){ in sqliteVdbeExec()
4032 pTos->flags = MEM_Str|MEM_Dyn; in sqliteVdbeExec()
4089 pTos->flags = MEM_Str|MEM_Dyn; in sqliteVdbeExec()
4107 assert( pTos->flags & MEM_Str ); in sqliteVdbeExec()
4287 pTos->flags = MEM_Str | MEM_Ephem; in sqliteVdbeExec()
4289 pTos->flags = MEM_Null; in sqliteVdbeExec()
4317 if( aMem[j].flags & MEM_Short ){ in sqliteVdbeExec()
4331 if( pMem->flags & MEM_Dyn ){ in sqliteVdbeExec()
4333 pTos->flags = MEM_Null; in sqliteVdbeExec()
4339 }else if( pMem->flags & MEM_Short ){ in sqliteVdbeExec()
4363 if( pTos->flags & MEM_Str ){ in sqliteVdbeExec()
4364 pTos->flags |= MEM_Ephem; in sqliteVdbeExec()
4365 pTos->flags &= ~(MEM_Dyn|MEM_Static|MEM_Short); in sqliteVdbeExec()
4384 assert( pMem->flags==MEM_Int ); in sqliteVdbeExec()
4437 assert( pTos->flags==MEM_Int ); in sqliteVdbeExec()
4441 if( pRec->flags & MEM_Null ){ in sqliteVdbeExec()
4459 pMem->flags = MEM_AggCtx; in sqliteVdbeExec()
4519 if( pMem->flags & MEM_Dyn ){ in sqliteVdbeExec()
4520 pTos->flags = MEM_Null; in sqliteVdbeExec()
4521 }else if( pMem->flags & MEM_Short ){ in sqliteVdbeExec()
4544 if( pTos->flags & MEM_Str ){ in sqliteVdbeExec()
4545 pTos->flags &= ~(MEM_Dyn|MEM_Static|MEM_Short); in sqliteVdbeExec()
4546 pTos->flags |= MEM_Ephem; in sqliteVdbeExec()
4548 if( pTos->flags & MEM_AggCtx ){ in sqliteVdbeExec()
4550 pTos->flags = MEM_Null; in sqliteVdbeExec()
4586 ctx.s.flags = MEM_Null; in sqliteVdbeExec()
4598 if( aMem[i].flags & MEM_Short ){ in sqliteVdbeExec()
4714 pTos->flags = MEM_Str | MEM_Ephem; in sqliteVdbeExec()
4740 pTos->flags = MEM_Int; in sqliteVdbeExec()
4798 assert( pTos->flags!=0 ); /* Must define some type */ in sqliteVdbeExec()
4799 if( pTos->flags & MEM_Str ){ in sqliteVdbeExec()
4800 int x = pTos->flags & (MEM_Static|MEM_Dyn|MEM_Ephem|MEM_Short); in sqliteVdbeExec()
4805 assert( (pTos->flags & MEM_Short)==0 || pTos->z==pTos->zShort ); in sqliteVdbeExec()
4806 assert( (pTos->flags & MEM_Short)!=0 || pTos->z!=pTos->zShort ); in sqliteVdbeExec()
4809 assert( (pTos->flags & (MEM_Static|MEM_Dyn|MEM_Ephem|MEM_Short))==0 ); in sqliteVdbeExec()
4812 assert( pTos->flags==MEM_Null || (pTos->flags&MEM_Null)==0 ); in sqliteVdbeExec()
4822 if( pTos[i].flags & MEM_Null ){ in sqliteVdbeExec()
4824 }else if( (pTos[i].flags & (MEM_Int|MEM_Str))==(MEM_Int|MEM_Str) ){ in sqliteVdbeExec()
4826 }else if( pTos[i].flags & MEM_Int ){ in sqliteVdbeExec()
4828 }else if( pTos[i].flags & MEM_Real ){ in sqliteVdbeExec()
4830 }else if( pTos[i].flags & MEM_Str ){ in sqliteVdbeExec()
4834 if( pTos[i].flags & MEM_Dyn ){ in sqliteVdbeExec()
4836 assert( (pTos[i].flags & (MEM_Static|MEM_Ephem))==0 ); in sqliteVdbeExec()
4837 }else if( pTos[i].flags & MEM_Static ){ in sqliteVdbeExec()
4839 assert( (pTos[i].flags & (MEM_Dyn|MEM_Ephem))==0 ); in sqliteVdbeExec()
4840 }else if( pTos[i].flags & MEM_Ephem ){ in sqliteVdbeExec()
4842 assert( (pTos[i].flags & (MEM_Static|MEM_Dyn))==0 ); in sqliteVdbeExec()
4912 assert( db->flags & SQLITE_Interrupt ); in sqliteVdbeExec()
4913 db->flags &= ~SQLITE_Interrupt; in sqliteVdbeExec()