Lines Matching refs:pRc
7036 static void *idxMalloc(int *pRc, int nByte){ in idxMalloc() argument
7038 assert( *pRc==SQLITE_OK ); in idxMalloc()
7044 *pRc = SQLITE_NOMEM; in idxMalloc()
7092 int *pRc, in idxHashAdd() argument
7107 pEntry = idxMalloc(pRc, sizeof(IdxHashEntry) + nKey+1 + nVal+1); in idxHashAdd()
7158 static IdxConstraint *idxNewConstraint(int *pRc, const char *zColl){ in idxNewConstraint() argument
7162 assert( *pRc==SQLITE_OK ); in idxNewConstraint()
7163 pNew = (IdxConstraint*)idxMalloc(pRc, sizeof(IdxConstraint) * nColl + 1); in idxNewConstraint()
7538 static void idxFinalize(int *pRc, sqlite3_stmt *pStmt){ in idxFinalize() argument
7540 if( *pRc==SQLITE_OK ) *pRc = rc; in idxFinalize()
7634 static char *idxAppendText(int *pRc, char *zIn, const char *zFmt, ...){ in idxAppendText() argument
7641 if( *pRc==SQLITE_OK ){ in idxAppendText()
7653 *pRc = SQLITE_NOMEM; in idxAppendText()
7685 int *pRc, /* IN/OUT: Error code */ in idxAppendColDefn() argument
7692 if( zRet ) zRet = idxAppendText(pRc, zRet, ", "); in idxAppendColDefn()
7695 zRet = idxAppendText(pRc, zRet, "%Q", p->zName); in idxAppendColDefn()
7697 zRet = idxAppendText(pRc, zRet, "%s", p->zName); in idxAppendColDefn()
7702 zRet = idxAppendText(pRc, zRet, " COLLATE %Q", pCons->zColl); in idxAppendColDefn()
7704 zRet = idxAppendText(pRc, zRet, " COLLATE %s", pCons->zColl); in idxAppendColDefn()
7709 zRet = idxAppendText(pRc, zRet, " DESC"); in idxAppendColDefn()
7723 int *pRc, /* OUT: Error code */ in idxFindCompatible() argument
7785 *pRc = rc; in idxFindCompatible()
14245 int *pRc, in shellPrepare() argument
14250 if( *pRc==SQLITE_OK ){ in shellPrepare()
14256 *pRc = rc; in shellPrepare()
14270 int *pRc, in shellPreparePrintf() argument
14276 if( *pRc==SQLITE_OK ){ in shellPreparePrintf()
14283 *pRc = SQLITE_NOMEM; in shellPreparePrintf()
14285 shellPrepare(db, pRc, z, ppStmt); in shellPreparePrintf()
14298 int *pRc, in shellFinalize() argument
14304 if( *pRc==SQLITE_OK ){ in shellFinalize()
14308 *pRc = rc; in shellFinalize()
14320 int *pRc, in shellReset() argument
14324 if( *pRc==SQLITE_OK ){ in shellReset()
14329 *pRc = rc; in shellReset()
14633 int *pRc, in arWhereClause() argument
14638 if( *pRc==SQLITE_OK ){ in arWhereClause()
14651 *pRc = SQLITE_NOMEM; in arWhereClause()
15035 static void shellExec(sqlite3 *db, int *pRc, const char *zSql){ in shellExec() argument
15036 int rc = *pRc; in shellExec()
15043 *pRc = rc; in shellExec()
15050 static void shellExecPrintf(sqlite3 *db, int *pRc, const char *zFmt, ...){ in shellExecPrintf() argument
15052 if( *pRc==SQLITE_OK ){ in shellExecPrintf()
15058 *pRc = SQLITE_NOMEM; in shellExecPrintf()
15060 shellExec(db, pRc, z); in shellExecPrintf()
15072 static void *shellMalloc(int *pRc, sqlite3_int64 nByte){ in shellMalloc() argument
15074 if( *pRc==SQLITE_OK ){ in shellMalloc()
15077 *pRc = SQLITE_NOMEM; in shellMalloc()
15096 static char *shellMPrintf(int *pRc, const char *zFmt, ...){ in shellMPrintf() argument
15098 if( *pRc==SQLITE_OK ){ in shellMPrintf()
15104 *pRc = SQLITE_NOMEM; in shellMPrintf()
15149 int *pRc, /* IN/OUT: Error code */ in recoverNewTable() argument
15156 int rc = *pRc; in recoverNewTable()
15257 *pRc = rc; in recoverNewTable()
15282 int *pRc, /* IN/OUT: Error code */ in recoverFindTable() argument
15295 shellPreparePrintf(pState->db, pRc, &pStmt, in recoverFindTable()
15298 while( *pRc==SQLITE_OK && SQLITE_ROW==sqlite3_step(pStmt) ){ in recoverFindTable()
15307 pRet = recoverNewTable(pRc, zName, zSql, bIntkey, nCol); in recoverFindTable()
15312 shellFinalize(pRc, pStmt); in recoverFindTable()
15322 int *pRc, /* IN/OUT: Error code */ in recoverOrphanTable() argument
15327 if( nCol>=0 && *pRc==SQLITE_OK ){ in recoverOrphanTable()
15335 char *zTab = shellMPrintf(pRc, "%s", zLostAndFound); in recoverOrphanTable()
15337 shellPrepare(pState->db, pRc, in recoverOrphanTable()
15341 while( *pRc==SQLITE_OK && SQLITE_ROW==sqlite3_step(pTest) ){ in recoverOrphanTable()
15342 shellReset(pRc, pTest); in recoverOrphanTable()
15344 zTab = shellMPrintf(pRc, "%s_%d", zLostAndFound, iTab++); in recoverOrphanTable()
15347 shellFinalize(pRc, pTest); in recoverOrphanTable()
15349 pTab = (RecoverTable*)shellMalloc(pRc, sizeof(RecoverTable)); in recoverOrphanTable()
15351 pTab->zQuoted = shellMPrintf(pRc, "\"%w\"", zTab); in recoverOrphanTable()
15355 pTab->azlCol = (char**)shellMalloc(pRc, sizeof(char*) * (nCol+1)); in recoverOrphanTable()
15357 pTab->azlCol[nCol] = shellMPrintf(pRc, ""); in recoverOrphanTable()
15359 pTab->azlCol[i] = shellMPrintf(pRc, "%s, NULL", pTab->azlCol[i+1]); in recoverOrphanTable()
15364 if( *pRc!=SQLITE_OK ){ in recoverOrphanTable()