Home | History | Annotate | Download | only in dist

Lines Matching full:savepoint

2747 #define SQLITE_SAVEPOINT            32   /* Operation       Savepoint Name  */
3209 ** [SAVEPOINT], [PRAGMA], or [VACUUM] the result of sqlite3_stmt_readonly(X) is
7391 typedef struct Savepoint Savepoint;
9012 Savepoint *pSavepoint; /* List of active savepoints */
9015 u8 isTransactionSavepoint; /* True if the outermost savepoint is a TS */
9189 ** opened savepoint. Savepoints are added to the list by the vdbe
9192 struct Savepoint {
9193 char *zName; /* Savepoint name (nul-terminated) */
9195 Savepoint *pNext; /* Parent savepoint (if any) */
21339 /* 32 */ "Savepoint",
35244 ** savepoint and statement transaction in the system. All such structures
35248 ** When a savepoint is created, the PagerSavepoint.iHdrOffset field is
35250 ** the savepoint is active, then iHdrOffset is set to the byte offset
35252 ** journal before the journal-header. This is required during savepoint
35259 Bitvec *pInSavepoint; /* Set of pages in this savepoint */
35263 u32 aWalData[WAL_SAVEPOINT_NDATA]; /* WAL savepoint context */
35341 ** comes up during savepoint rollback that requires the pcache module
36901 ** Neither of these two scenarios are possible during a savepoint rollback.
36903 ** If this is a savepoint rollback, then memory may have to be dynamically
36912 int isSavepnt /* True for a savepoint rollback */
36925 assert( isSavepnt || pDone==0 ); /* pDone never used on non-savepoint */
36932 ** or savepoint rollback done at the request of the caller) or this is
37054 /* If this is a rollback of a savepoint and data was not written to
37099 ** back as part of a savepoint (or statement) rollback from an
37939 ** Playback savepoint pSavepoint. Or, if pSavepoint==NULL, then playback
37941 ** a ROLLBACK TO command is invoked on a SAVEPOINT that is a transaction
37942 ** savepoint.
37944 ** When pSavepoint is not NULL (meaning a non-transaction savepoint is
37970 ** is reset to the value that it held at the start of the savepoint
37991 /* Set the database size back to the value it was before the savepoint
38458 ** the database file. If a savepoint transaction were rolled back after
38886 ** SQLITE_NOMEM if a malloc fails while setting a bit in a savepoint
39002 ** SAVEPOINT sp;
39011 ** was when the transaction started, not as it was when "SAVEPOINT sp"
39726 ** b) When a savepoint is being rolled back and we need to load
39728 ** from the savepoint journal.
40038 ** This is because in those states the code to roll back savepoint
40910 ** This function is called to rollback or release (commit) a savepoint.
40911 ** The savepoint to release or rollback need not be the most recently
40912 ** created savepoint.
40915 ** If it is SAVEPOINT_RELEASE, then release and destroy the savepoint with
40917 ** that have occurred since the specified savepoint was created.
40919 ** The savepoint to rollback or release is identified by parameter
40920 ** iSavepoint. A value of 0 means to operate on the outermost savepoint
40922 ** on the most recently created savepoint. If iSavepoint is greater than
40933 ** then savepoint iSavepoint is also destroyed.
40937 ** savepoint. If no errors occur, SQLITE_OK is returned.
40959 /* If this is a release of the outermost savepoint, truncate
40971 /* Else this is a rollback operation, playback the specified savepoint.
41094 ** savepoint, then save the current contents of the page into the
41099 ** SAVEPOINT one;
41108 ** one or more savepoint bitvecs. This is the reason this function
42467 ** to a rollback or savepoint.
43947 ** point in the event of a savepoint rollback (via WalSavepointUndo()).
43970 /* This savepoint was opened immediately after the write-transaction
43972 ** to the start of the log. Update the savepoint values to match.
48001 ** re-read the database size from page 1 if a savepoint or transaction
48700 ** A statement sub-transaction is implemented as an anonymous savepoint. The
48702 ** including the new anonymous savepoint, open on the B-Tree. i.e. if there
48704 ** iStatement is 1. This anonymous savepoint can be released or rolled back
48716 /* At the pager level, a statement transaction is a savepoint with
48719 ** such savepoints while the statement transaction savepoint is active.
48729 ** savepoint identified by parameter iSavepoint, depending on the value
57384 ** no rollback is necessary. Otherwise, at least a savepoint
60505 Savepoint *p;
60702 char *zName; /* Name of savepoint */
60704 Savepoint *pNew;
60705 Savepoint *pSavepoint;
60706 Savepoint *pTmp;
62961 /* Opcode: Savepoint P1 * * P4 *
62963 ** Open, release or rollback the savepoint named by parameter P4, depending
62964 ** on the value of P1. To open a new savepoint, P1==0. To release (commit) an
62965 ** existing savepoint, P1==1, or to rollback an existing savepoint P1==2.
62970 char *zName; /* Name of savepoint */
62972 Savepoint *pNew;
62973 Savepoint *pSavepoint;
62974 Savepoint *pTmp;
62992 /* A new savepoint cannot be created if there are active write
62995 sqlite3SetString(&p->zErrMsg, db, "cannot open savepoint - "
63001 /* Create a new savepoint structure. */
63002 u.aq.pNew = sqlite3DbMallocRaw(db, sizeof(Savepoint)+u.aq.nName+1);
63008 ** "transaction savepoint". */
63016 /* Link the new savepoint into the database handle's list. */
63025 /* Find the named savepoint. If there is no such savepoint, then an
63035 sqlite3SetString(&p->zErrMsg, db, "no such savepoint: %s", u.aq.zName);
63040 /* It is not possible to release (commit) a savepoint if there are
63041 ** active write statements. It is not possible to rollback a savepoint
63045 "cannot %s savepoint - SQL statements in progress",
63051 /* Determine whether or not this is a transaction savepoint. If so,
63085 ** savepoints nested inside of the savepoint being operated on. */
63093 /* If it is a RELEASE, then destroy the savepoint being operated on
63096 ** when the savepoint was created. */
78219 ** release or rollback an SQL savepoint.
100986 26, /* SAVEPOINT => ID */
101120 "ROLLBACK", "SAVEPOINT", "RELEASE", "TO",
101207 /* 20 */ "savepoint_opt ::= SAVEPOINT",
101209 /* 22 */ "cmd ::= SAVEPOINT nm",
102318 case 22: /* cmd ::= SAVEPOINT nm */
103352 /* (20) savepoint_opt ::= SAVEPOINT */ yytestcase(yyruleno==20);
103879 testcase( i==34 ); /* SAVEPOINT */
105428 Savepoint *pTmp = db->pSavepoint;
105505 /* Free any outstanding Savepoint structures. */
117460 rc = sqlite3_exec(p->db, "SAVEPOINT fts3", 0, 0, 0);