Lines Matching refs:onError
11746 u8 onError; /* OE_Abort, OE_Ignore, OE_Replace, or OE_None */ member
11774 #define IsUniqueIndex(X) ((X)->onError!=OE_None)
91912 SQLITE_PRIVATE void sqlite3AddNotNull(Parse *pParse, int onError){
91916 p->aCol[p->nCol-1].notNull = (u8)onError;
92084 int onError, /* What to do with a uniqueness conflict */
92121 pTab->keyConf = (u8)onError;
92134 p = sqlite3CreateIndex(pParse, 0, 0, 0, pList, onError, 0,
93640 int onError, /* OE_Abort, OE_Ignore, OE_Replace, or OE_None */
93848 pIndex->onError = (u8)onError;
93849 pIndex->uniqNotNull = onError!=OE_None;
93975 if( pIdx->onError!=pIndex->onError ){
93983 if( !(pIdx->onError==OE_Default || pIndex->onError==OE_Default) ){
93987 if( pIdx->onError==OE_Default ){
93988 pIdx->onError = pIndex->onError;
94051 onError==OE_None ? "" : " UNIQUE", n, pName->z);
94089 if( onError!=OE_Replace || pTab->pIndex==0
94090 || pTab->pIndex->onError==OE_Replace){
94095 while( pOther->pNext && pOther->pNext->onError!=OE_Replace ){
94803 int onError, /* Constraint type */
94810 if( onError==OE_Abort ){
94813 sqlite3VdbeAddOp4(v, OP_Halt, errCode, onError, 0, p4, p4type);
94822 int onError, /* Constraint type */
94842 onError, zErr, P4_DYNAMIC, P5_ConstraintUnique);
94851 int onError, /* Conflict resolution algorithm */
94864 sqlite3HaltConstraint(pParse, rc, onError, zMsg, P4_DYNAMIC,
99968 int onError, /* How to handle constraint errors */
100074 int onError /* How to handle constraint errors */
100198 if( pColumn==0 && xferOptimization(pParse, pTab, pSelect, onError, iDb) ){
100485 pTab, regCols-pTab->nCol-1, onError, endOfLoop);
100587 sqlite3VdbeChangeP5(v, onError==OE_Default ? OE_Abort : onError);
100594 regIns, 0, ipkColumn>=0, onError, endOfLoop, &isReplace
100611 pTab, regData-2-pTab->nCol, onError, endOfLoop);
100779 int onError; /* Conflict resolution strategy */
100818 onError = pTab->aCol[i].notNull;
100819 if( onError==OE_None ) continue;
100821 onError = overrideError;
100822 }else if( onError==OE_Default ){
100823 onError = OE_Abort;
100825 if( onError==OE_Replace && pTab->aCol[i].pDflt==0 ){
100826 onError = OE_Abort;
100828 assert( onError==OE_Rollback || onError==OE_Abort || onError==OE_Fail
100829 || onError==OE_Ignore || onError==OE_Replace );
100830 switch( onError ){
100838 sqlite3VdbeAddOp4(v, OP_HaltIfNull, SQLITE_CONSTRAINT_NOTNULL, onError,
100850 assert( onError==OE_Replace );
100865 onError = overrideError!=OE_Default ? overrideError : OE_Abort;
100869 if( onError==OE_Ignore ){
100874 if( onError==OE_Replace ) onError = OE_Abort; /* IMP: R-15569-63625 */
100876 onError, zName, P4_TRANSIENT,
100891 onError = pTab->keyConf;
100893 onError = overrideError;
100894 }else if( onError==OE_Default ){
100895 onError = OE_Abort;
100912 if( onError==OE_Replace && overrideError!=OE_Replace ){
100914 if( pIdx->onError==OE_Ignore || pIdx->onError==OE_Fail ){
100927 switch( onError ){
100929 onError = OE_Abort;
100935 sqlite3RowidConstraint(pParse, onError, pTab);
101050 onError = pIdx->onError;
101051 if( onError==OE_None ){
101057 onError = overrideError;
101058 }else if( onError==OE_Default ){
101059 onError = OE_Abort;
101068 if( isUpdate || onError==OE_Replace ){
101121 assert( onError==OE_Rollback || onError==OE_Abort || onError==OE_Fail
101122 || onError==OE_Ignore || onError==OE_Replace );
101123 switch( onError ){
101127 sqlite3UniqueConstraint(pParse, onError, pIdx);
101136 assert( onError==OE_Replace );
101348 if( pDest->onError!=pSrc->onError ){
101399 int onError, /* How to handle constraint errors */
101435 if( onError==OE_Default ){
101436 if( pDest->iPKey>=0 ) onError = pDest->keyConf;
101437 if( onError==OE_Default ) onError = OE_Abort;
101578 || (onError!=OE_Abort && onError!=OE_Rollback) /* (3) */
101608 sqlite3RowidConstraint(pParse, onError, pDest);
113051 static const char *onErrorText(int onError){
113052 switch( onError ){
113425 int onError /* ON CONFLICT strategy */
113492 int onError /* How to handle constraint errors */
113702 pWhere, onError);
113812 if( onError==OE_Replace ){
113816 if( pIdx->onError==OE_Replace ){
113870 pTrigger, pChanges, 0, TRIGGER_BEFORE|TRIGGER_AFTER, pTab, onError
113902 pParse, pTrigger, pChanges, 1, TRIGGER_BEFORE, pTab, onError
113933 TRIGGER_BEFORE, pTab, regOldRowid, onError, labelContinue);
113968 regNewRowid, regOldRowid, chngKey, onError, labelContinue, &bReplace);
114017 TRIGGER_AFTER, pTab, regOldRowid, onError, labelContinue);
114106 int onError /* ON CONFLICT strategy */
114163 sqlite3VdbeChangeP5(v, onError==OE_Default ? OE_Abort : onError);
121281 sPk.onError = OE_Replace;