Home | History | Annotate | Download | only in amalgamation

Lines Matching defs:Savepoint

2802 #define SQLITE_SAVEPOINT            32   /* Operation       Savepoint Name  */
3276 ** [SAVEPOINT], and [RELEASE] cause sqlite3_stmt_readonly() to return true,
7603 typedef struct Savepoint Savepoint;
9227 Savepoint *pSavepoint; /* List of active savepoints */
9230 u8 isTransactionSavepoint; /* True if the outermost savepoint is a TS */
9405 ** opened savepoint. Savepoints are added to the list by the vdbe
9408 struct Savepoint {
9409 char *zName; /* Savepoint name (nul-terminated) */
9411 Savepoint *pNext; /* Parent savepoint (if any) */
21688 /* 32 */ "Savepoint",
36863 ** savepoint and statement transaction in the system. All such structures
36867 ** When a savepoint is created, the PagerSavepoint.iHdrOffset field is
36869 ** the savepoint is active, then iHdrOffset is set to the byte offset
36871 ** journal before the journal-header. This is required during savepoint
36878 Bitvec *pInSavepoint; /* Set of pages in this savepoint */
36882 u32 aWalData[WAL_SAVEPOINT_NDATA]; /* WAL savepoint context */
36960 ** comes up during savepoint rollback that requires the pcache module
38520 ** Neither of these two scenarios are possible during a savepoint rollback.
38522 ** If this is a savepoint rollback, then memory may have to be dynamically
38531 int isSavepnt /* True for a savepoint rollback */
38544 assert( isSavepnt || pDone==0 ); /* pDone never used on non-savepoint */
38551 ** or savepoint rollback done at the request of the caller) or this is
38673 /* If this is a rollback of a savepoint and data was not written to
38718 ** back as part of a savepoint (or statement) rollback from an
39577 ** Playback savepoint pSavepoint. Or, if pSavepoint==NULL, then playback
39579 ** a ROLLBACK TO command is invoked on a SAVEPOINT that is a transaction
39580 ** savepoint.
39582 ** When pSavepoint is not NULL (meaning a non-transaction savepoint is
39608 ** is reset to the value that it held at the start of the savepoint
39629 /* Set the database size back to the value it was before the savepoint
40096 ** the database file. If a savepoint transaction were rolled back after
40524 ** SQLITE_NOMEM if a malloc fails while setting a bit in a savepoint
40640 ** SAVEPOINT sp;
40649 ** was when the transaction started, not as it was when "SAVEPOINT sp"
41364 ** b) When a savepoint is being rolled back and we need to load
41366 ** from the savepoint journal.
41708 ** This is because in those states the code to roll back savepoint
42601 ** This function is called to rollback or release (commit) a savepoint.
42602 ** The savepoint to release or rollback need not be the most recently
42603 ** created savepoint.
42606 ** If it is SAVEPOINT_RELEASE, then release and destroy the savepoint with
42608 ** that have occurred since the specified savepoint was created.
42610 ** The savepoint to rollback or release is identified by parameter
42611 ** iSavepoint. A value of 0 means to operate on the outermost savepoint
42613 ** on the most recently created savepoint. If iSavepoint is greater than
42624 ** then savepoint iSavepoint is also destroyed.
42628 ** savepoint. If no errors occur, SQLITE_OK is returned.
42650 /* If this is a release of the outermost savepoint, truncate
42662 /* Else this is a rollback operation, playback the specified savepoint.
42785 ** savepoint, then save the current contents of the page into the
42790 ** SAVEPOINT one;
42799 ** one or more savepoint bitvecs. This is the reason this function
44164 ** to a rollback or savepoint.
45728 ** point in the event of a savepoint rollback (via WalSavepointUndo()).
45751 /* This savepoint was opened immediately after the write-transaction
45753 ** to the start of the log. Update the savepoint values to match.
49751 ** re-read the database size from page 1 if a savepoint or transaction
50461 ** A statement sub-transaction is implemented as an anonymous savepoint. The
50463 ** including the new anonymous savepoint, open on the B-Tree. i.e. if there
50465 ** iStatement is 1. This anonymous savepoint can be released or rolled back
50477 /* At the pager level, a statement transaction is a savepoint with
50480 ** such savepoints while the statement transaction savepoint is active.
50490 ** savepoint identified by parameter iSavepoint, depending on the value
59232 ** no rollback is necessary. Otherwise, at least a savepoint
62399 Savepoint *p;
62598 char *zName; /* Name of savepoint */
62600 Savepoint *pNew;
62601 Savepoint *pSavepoint;
62602 Savepoint *pTmp;
64889 /* Opcode: Savepoint P1 * * P4 *
64891 ** Open, release or rollback the savepoint named by parameter P4, depending
64892 ** on the value of P1. To open a new savepoint, P1==0. To release (commit) an
64893 ** existing savepoint, P1==1, or to rollback an existing savepoint P1==2.
64898 char *zName; /* Name of savepoint */
64900 Savepoint *pNew;
64901 Savepoint *pSavepoint;
64902 Savepoint *pTmp;
64920 /* A new savepoint cannot be created if there are active write
64923 sqlite3SetString(&p->zErrMsg, db, "cannot open savepoint - "
64929 /* Create a new savepoint structure. */
64930 u.aq.pNew = sqlite3DbMallocRaw(db, sizeof(Savepoint)+u.aq.nName+1);
64936 ** "transaction savepoint". */
64944 /* Link the new savepoint into the database handle's list. */
64953 /* Find the named savepoint. If there is no such savepoint, then an
64963 sqlite3SetString(&p->zErrMsg, db, "no such savepoint: %s", u.aq.zName);
64968 /* It is not possible to release (commit) a savepoint if there are
64969 ** active write statements. It is not possible to rollback a savepoint
64973 "cannot %s savepoint - SQL statements in progress",
64979 /* Determine whether or not this is a transaction savepoint. If so,
65013 ** savepoints nested inside of the savepoint being operated on. */
65021 /* If it is a RELEASE, then destroy the savepoint being operated on
65024 ** when the savepoint was created. */
80251 ** release or rollback an SQL savepoint.
103417 26, /* SAVEPOINT => ID */
103551 "ROLLBACK", "SAVEPOINT", "RELEASE", "TO",
103638 /* 20 */ "savepoint_opt ::= SAVEPOINT",
103640 /* 22 */ "cmd ::= SAVEPOINT nm",
104749 case 22: /* cmd ::= SAVEPOINT nm */
105783 /* (20) savepoint_opt ::= SAVEPOINT */ yytestcase(yyruleno==20);
106310 testcase( i==34 ); /* SAVEPOINT */
107894 Savepoint *pTmp = db->pSavepoint;
107966 /* Free any outstanding Savepoint structures. */
122627 rc = sqlite3_exec(p->db, "SAVEPOINT fts3", 0, 0, 0);