Lines Matching defs:aq
52409 } aq;
54655 #if 0 /* local variables moved into u.aq */
54664 #endif /* local variables moved into u.aq */
54666 u.aq.p1 = pOp->p1;
54667 u.aq.zName = pOp->p4.z;
54669 /* Assert that the u.aq.p1 parameter is valid. Also that if there is no open
54673 assert( u.aq.p1==SAVEPOINT_BEGIN||u.aq.p1==SAVEPOINT_RELEASE||u.aq.p1==SAVEPOINT_ROLLBACK );
54677 if( u.aq.p1==SAVEPOINT_BEGIN ){
54686 u.aq.nName = sqlite3Strlen30(u.aq.zName);
54689 u.aq.pNew = sqlite3DbMallocRaw(db, sizeof(Savepoint)+u.aq.nName+1);
54690 if( u.aq.pNew ){
54691 u.aq.pNew->zName = (char *)&u.aq.pNew[1];
54692 memcpy(u.aq.pNew->zName, u.aq.zName, u.aq.nName+1);
54704 u.aq.pNew->pNext = db->pSavepoint;
54705 db->pSavepoint = u.aq.pNew;
54706 u.aq.pNew->nDeferredCons = db->nDeferredCons;
54710 u.aq.iSavepoint = 0;
54715 u.aq.pSavepoint = db->pSavepoint;
54716 u.aq.pSavepoint && sqlite3StrICmp(u.aq.pSavepoint->zName, u.aq.zName);
54717 u.aq.pSavepoint = u.aq.pSavepoint->pNext
54719 u.aq.iSavepoint++;
54721 if( !u.aq.pSavepoint ){
54722 sqlite3SetString(&p->zErrMsg, db, "no such savepoint: %s", u.aq.zName);
54725 db->writeVdbeCnt>0 || (u.aq.p1==SAVEPOINT_ROLLBACK && db->activeVdbeCnt>1)
54733 (u.aq.p1==SAVEPOINT_ROLLBACK ? "rollback": "release")
54742 int isTransaction = u.aq.pSavepoint->pNext==0 && db->isTransactionSavepoint;
54743 if( isTransaction && u.aq.p1==SAVEPOINT_RELEASE ){
54757 u.aq.iSavepoint = db->nSavepoint - u.aq.iSavepoint - 1;
54758 for(u.aq.ii=0; u.aq.ii<db->nDb; u.aq.ii++){
54759 rc = sqlite3BtreeSavepoint(db->aDb[u.aq.ii].pBt, u.aq.p1, u.aq.iSavepoint);
54764 if( u.aq.p1==SAVEPOINT_ROLLBACK && (db->flags&SQLITE_InternChanges)!=0 ){
54772 while( db->pSavepoint!=u.aq.pSavepoint ){
54773 u.aq.pTmp = db->pSavepoint;
54774 db->pSavepoint = u.aq.pTmp->pNext;
54775 sqlite3DbFree(db, u.aq.pTmp);
54783 if( u.aq.p1==SAVEPOINT_RELEASE ){
54784 assert( u.aq.pSavepoint==db->pSavepoint );
54785 db->pSavepoint = u.aq.pSavepoint->pNext;
54786 sqlite3DbFree(db, u.aq.pSavepoint);
54791 db->nDeferredCons = u.aq.pSavepoint->nDeferredCons;