Home | History | Annotate | Download | only in dist

Lines Matching defs:Savepoint

2940 #define SQLITE_SAVEPOINT            32   /* Operation       Savepoint Name  */
3566 ** [SAVEPOINT], and [RELEASE] cause sqlite3_stmt_readonly() to return true,
8150 typedef struct Savepoint Savepoint;
9732 u8 isTransactionSavepoint; /* True if the outermost savepoint is a TS */
9795 Savepoint *pSavepoint; /* List of active savepoints */
9973 ** opened savepoint. Savepoints are added to the list by the vdbe
9976 struct Savepoint {
9977 char *zName; /* Savepoint name (nul-terminated) */
9979 Savepoint *pNext; /* Parent savepoint (if any) */
10140 int iSavepoint; /* Depth of the SAVEPOINT stack */
22550 /* 33 */ "Savepoint",
38887 ** savepoint and statement transaction in the system. All such structures
38891 ** When a savepoint is created, the PagerSavepoint.iHdrOffset field is
38893 ** the savepoint is active, then iHdrOffset is set to the byte offset
38895 ** journal before the journal-header. This is required during savepoint
38902 Bitvec *pInSavepoint; /* Set of pages in this savepoint */
38906 u32 aWalData[WAL_SAVEPOINT_NDATA]; /* WAL savepoint context */
38984 ** comes up during savepoint rollback that requires the pcache module
40544 ** Neither of these two scenarios are possible during a savepoint rollback.
40546 ** If this is a savepoint rollback, then memory may have to be dynamically
40555 int isSavepnt /* True for a savepoint rollback */
40568 assert( isSavepnt || pDone==0 ); /* pDone never used on non-savepoint */
40575 ** or savepoint rollback done at the request of the caller) or this is
40697 /* If this is a rollback of a savepoint and data was not written to
40742 ** back as part of a savepoint (or statement) rollback from an
41610 ** Playback savepoint pSavepoint. Or, if pSavepoint==NULL, then playback
41612 ** a ROLLBACK TO command is invoked on a SAVEPOINT that is a transaction
41613 ** savepoint.
41615 ** When pSavepoint is not NULL (meaning a non-transaction savepoint is
41641 ** is reset to the value that it held at the start of the savepoint
41662 /* Set the database size back to the value it was before the savepoint
42140 ** the database file. If a savepoint transaction were rolled back after
42569 ** SQLITE_NOMEM if a malloc fails while setting a bit in a savepoint
42685 ** SAVEPOINT sp;
42694 ** was when the transaction started, not as it was when "SAVEPOINT sp"
43425 ** b) When a savepoint is being rolled back and we need to load
43427 ** from the savepoint journal.
43737 ** This is because in those states the code to roll back savepoint
44657 ** This function is called to rollback or release (commit) a savepoint.
44658 ** The savepoint to release or rollback need not be the most recently
44659 ** created savepoint.
44662 ** If it is SAVEPOINT_RELEASE, then release and destroy the savepoint with
44664 ** that have occurred since the specified savepoint was created.
44666 ** The savepoint to rollback or release is identified by parameter
44667 ** iSavepoint. A value of 0 means to operate on the outermost savepoint
44669 ** on the most recently created savepoint. If iSavepoint is greater than
44680 ** then savepoint iSavepoint is also destroyed.
44684 ** savepoint. If no errors occur, SQLITE_OK is returned.
44706 /* If this is a release of the outermost savepoint, truncate
44718 /* Else this is a rollback operation, playback the specified savepoint.
44841 ** savepoint, then save the current contents of the page into the
44846 ** SAVEPOINT one;
44855 ** one or more savepoint bitvecs. This is the reason this function
46262 ** to a rollback or savepoint.
47890 ** point in the event of a savepoint rollback (via WalSavepointUndo()).
47913 /* This savepoint was opened immediately after the write-transaction
47915 ** to the start of the log. Update the savepoint values to match.
52047 ** re-read the database size from page 1 if a savepoint or transaction
52754 ** A statement sub-transaction is implemented as an anonymous savepoint. The
52756 ** including the new anonymous savepoint, open on the B-Tree. i.e. if there
52758 ** iStatement is 1. This anonymous savepoint can be released or rolled back
52770 /* At the pager level, a statement transaction is a savepoint with
52773 ** such savepoints while the statement transaction savepoint is active.
52783 ** savepoint identified by parameter iSavepoint, depending on the value
61689 ** no rollback is necessary. Otherwise, at least a savepoint
64946 Savepoint *p;
65150 char *zName; /* Name of savepoint */
65152 Savepoint *pNew;
65153 Savepoint *pSavepoint;
65154 Savepoint *pTmp;
67509 /* Opcode: Savepoint P1 * * P4 *
67511 ** Open, release or rollback the savepoint named by parameter P4, depending
67512 ** on the value of P1. To open a new savepoint, P1==0. To release (commit) an
67513 ** existing savepoint, P1==1, or to rollback an existing savepoint P1==2.
67518 char *zName; /* Name of savepoint */
67520 Savepoint *pNew;
67521 Savepoint *pSavepoint;
67522 Savepoint *pTmp;
67540 /* A new savepoint cannot be created if there are active write
67543 sqlite3SetString(&p->zErrMsg, db, "cannot open savepoint - "
67550 /* This call is Ok even if this savepoint is actually a transaction
67551 ** savepoint (and therefore should not prompt xSavepoint()) callbacks.
67552 ** If this is a transaction savepoint being opened, it is guaranteed
67560 /* Create a new savepoint structure. */
67561 u.ar.pNew = sqlite3DbMallocRaw(db, sizeof(Savepoint)+u.ar.nName+1);
67567 ** "transaction savepoint". */
67575 /* Link the new savepoint into the database handle's list. */
67584 /* Find the named savepoint. If there is no such savepoint, then an
67594 sqlite3SetString(&p->zErrMsg, db, "no such savepoint: %s", u.ar.zName);
67597 /* It is not possible to release (commit) a savepoint if there are
67601 "cannot release savepoint - SQL statements in progress"
67606 /* Determine whether or not this is a transaction savepoint. If so,
67643 ** savepoints nested inside of the savepoint being operated on. */
67651 /* If it is a RELEASE, then destroy the savepoint being operated on
67654 ** when the savepoint was created. */
84701 ** release or rollback an SQL savepoint.
108614 26, /* SAVEPOINT => ID */
108749 "ROLLBACK", "SAVEPOINT", "RELEASE", "TO",
108836 /* 20 */ "savepoint_opt ::= SAVEPOINT",
108838 /* 22 */ "cmd ::= SAVEPOINT nm",
109948 case 22: /* cmd ::= SAVEPOINT nm */
111010 /* (20) savepoint_opt ::= SAVEPOINT */ yytestcase(yyruleno==20);
111538 testcase( i==34 ); /* SAVEPOINT */
113169 Savepoint *pTmp = db->pSavepoint;
113241 /* Free any outstanding Savepoint structures. */
120043 ** always opens a savepoint transaction. And the xSavepoint() method
128639 rc = sqlite3_exec(p->db, "SAVEPOINT fts3", 0, 0, 0);