Home | History | Annotate | Download | only in orig

Lines Matching defs:Savepoint

2680 #define SQLITE_SAVEPOINT            32   /* Operation       Savepoint Name  */
3350 ** [SAVEPOINT], and [RELEASE] cause sqlite3_stmt_readonly() to return true,
8807 typedef struct Savepoint Savepoint;
10455 u8 isTransactionSavepoint; /* True if the outermost savepoint is a TS */
10517 Savepoint *pSavepoint; /* List of active savepoints */
10739 ** opened savepoint. Savepoints are added to the list by the vdbe
10742 struct Savepoint {
10743 char *zName; /* Savepoint name (nul-terminated) */
10746 Savepoint *pNext; /* Parent savepoint (if any) */
10904 int iSavepoint; /* Depth of the SAVEPOINT stack */
23901 /* 2 */ "Savepoint" OpHelp(""),
40679 ** savepoint and statement transaction in the system. All such structures
40683 ** When a savepoint is created, the PagerSavepoint.iHdrOffset field is
40685 ** the savepoint is active, then iHdrOffset is set to the byte offset
40687 ** journal before the journal-header. This is required during savepoint
40694 Bitvec *pInSavepoint; /* Set of pages in this savepoint */
40698 u32 aWalData[WAL_SAVEPOINT_NDATA]; /* WAL savepoint context */
40784 ** comes up during savepoint rollback that requires the pcache module
42389 ** Neither of these two scenarios are possible during a savepoint rollback.
42391 ** If this is a savepoint rollback, then memory may have to be dynamically
42400 int isSavepnt /* True for a savepoint rollback */
42413 assert( isSavepnt || pDone==0 ); /* pDone never used on non-savepoint */
42420 ** or savepoint rollback done at the request of the caller) or this is
42542 /* If this is a rollback of a savepoint and data was not written to
42587 ** back as part of a savepoint (or statement) rollback from an
43481 ** Playback savepoint pSavepoint. Or, if pSavepoint==NULL, then playback
43483 ** a ROLLBACK TO command is invoked on a SAVEPOINT that is a transaction
43484 ** savepoint.
43486 ** When pSavepoint is not NULL (meaning a non-transaction savepoint is
43512 ** is reset to the value that it held at the start of the savepoint
43533 /* Set the database size back to the value it was before the savepoint
44049 ** the database file. If a savepoint transaction were rolled back after
44087 ** if one or more savepoints are open, present in the savepoint
44088 savepoint is rolled
44571 ** SQLITE_NOMEM if a malloc fails while setting a bit in a savepoint
44693 ** SAVEPOINT sp;
44702 ** was when the transaction started, not as it was when "SAVEPOINT sp"
45491 ** b) When a savepoint is being rolled back and we need to load
45493 ** from the savepoint journal.
45867 ** This is because in those states the code to roll back savepoint
46761 ** This function is called to rollback or release (commit) a savepoint.
46762 ** The savepoint to release or rollback need not be the most recently
46763 ** created savepoint.
46766 ** If it is SAVEPOINT_RELEASE, then release and destroy the savepoint with
46768 ** that have occurred since the specified savepoint was created.
46770 ** The savepoint to rollback or release is identified by parameter
46771 ** iSavepoint. A value of 0 means to operate on the outermost savepoint
46773 ** on the most recently created savepoint. If iSavepoint is greater than
46784 ** then savepoint iSavepoint is also destroyed.
46788 ** savepoint. If no errors occur, SQLITE_OK is returned.
46810 /* If this is a release of the outermost savepoint, truncate
46822 /* Else this is a rollback operation, playback the specified savepoint.
46972 ** savepoint, then save the current contents of the page into the
46977 ** SAVEPOINT one;
46986 ** one or more savepoint bitvecs. This is the reason this function
48382 ** to a rollback or savepoint.
50016 ** point in the event of a savepoint rollback (via WalSavepointUndo()).
50039 /* This savepoint was opened immediately after the write-transaction
50041 ** to the start of the log. Update the savepoint values to match.
54330 ** re-read the database size from page 1 if a savepoint or transaction
55041 ** A statement sub-transaction is implemented as an anonymous savepoint. The
55043 ** including the new anonymous savepoint, open on the B-Tree. i.e. if there
55045 ** iStatement is 1. This anonymous savepoint can be released or rolled back
55057 /* At the pager level, a statement transaction is a savepoint with
55060 ** such savepoints while the statement transaction savepoint is active.
55070 ** savepoint identified by parameter iSavepoint, depending on the value
64539 ** no rollback is necessary. Otherwise, at least a savepoint
68478 Savepoint *p;
70760 /* Opcode: Savepoint P1 * * P4 *
70762 ** Open, release or rollback the savepoint named by parameter P4, depending
70763 ** on the value of P1. To open a new savepoint, P1==0. To release (commit) an
70764 ** existing savepoint, P1==1, or to rollback an existing savepoint P1==2.
70768 char *zName; /* Name of savepoint */
70770 Savepoint *pNew;
70771 Savepoint *pSavepoint;
70772 Savepoint *pTmp;
70790 /* A new savepoint cannot be created if there are active write
70793 sqlite3SetString(&p->zErrMsg, db, "cannot open savepoint - "
70800 /* This call is Ok even if this savepoint is actually a transaction
70801 ** savepoint (and therefore should not prompt xSavepoint()) callbacks.
70802 ** If this is a transaction savepoint being opened, it is guaranteed
70810 /* Create a new savepoint structure. */
70811 pNew = sqlite3DbMallocRaw(db, sizeof(Savepoint)+nName+1);
70817 ** "transaction savepoint". */
70825 /* Link the new savepoint into the database handle's list. */
70835 /* Find the named savepoint. If there is no such savepoint, then an
70845 sqlite3SetString(&p->zErrMsg, db, "no such savepoint: %s", zName);
70848 /* It is not possible to release (commit) a savepoint if there are
70852 "cannot release savepoint - SQL statements in progress"
70857 /* Determine whether or not this is a transaction savepoint. If so,
70896 ** savepoints nested inside of the savepoint being operated on. */
70904 /* If it is a RELEASE, then destroy the savepoint being operated on
70907 ** when the savepoint was created. */
89891 ** release or rollback an SQL savepoint.
118217 27, /* SAVEPOINT => ID */
118355 "ROLLBACK", "SAVEPOINT", "RELEASE", "TO",
118443 /* 20 */ "savepoint_opt ::= SAVEPOINT",
118445 /* 22 */ "cmd ::= SAVEPOINT nm",
119555 case 22: /* cmd ::= SAVEPOINT nm */
120703 /* (20) savepoint_opt ::= SAVEPOINT */ yytestcase(yyruleno==20);
121230 testcase( i==34 ); /* SAVEPOINT */
122921 Savepoint *pTmp = db->pSavepoint;
123083 /* Free any outstanding Savepoint structures. */
130451 ** always opens a savepoint transaction. And the xSavepoint() method
142344 rc = sqlite3_exec(p->db, "SAVEPOINT fts3", 0, 0, 0);