Lines Matching refs:pRc
7031 static void *idxMalloc(int *pRc, int nByte){ in idxMalloc() argument
7033 assert( *pRc==SQLITE_OK ); in idxMalloc()
7039 *pRc = SQLITE_NOMEM; in idxMalloc()
7087 int *pRc, in idxHashAdd() argument
7102 pEntry = idxMalloc(pRc, sizeof(IdxHashEntry) + nKey+1 + nVal+1); in idxHashAdd()
7153 static IdxConstraint *idxNewConstraint(int *pRc, const char *zColl){ in idxNewConstraint() argument
7157 assert( *pRc==SQLITE_OK ); in idxNewConstraint()
7158 pNew = (IdxConstraint*)idxMalloc(pRc, sizeof(IdxConstraint) * nColl + 1); in idxNewConstraint()
7533 static void idxFinalize(int *pRc, sqlite3_stmt *pStmt){ in idxFinalize() argument
7535 if( *pRc==SQLITE_OK ) *pRc = rc; in idxFinalize()
7629 static char *idxAppendText(int *pRc, char *zIn, const char *zFmt, ...){ in idxAppendText() argument
7636 if( *pRc==SQLITE_OK ){ in idxAppendText()
7648 *pRc = SQLITE_NOMEM; in idxAppendText()
7680 int *pRc, /* IN/OUT: Error code */ in idxAppendColDefn() argument
7687 if( zRet ) zRet = idxAppendText(pRc, zRet, ", "); in idxAppendColDefn()
7690 zRet = idxAppendText(pRc, zRet, "%Q", p->zName); in idxAppendColDefn()
7692 zRet = idxAppendText(pRc, zRet, "%s", p->zName); in idxAppendColDefn()
7697 zRet = idxAppendText(pRc, zRet, " COLLATE %Q", pCons->zColl); in idxAppendColDefn()
7699 zRet = idxAppendText(pRc, zRet, " COLLATE %s", pCons->zColl); in idxAppendColDefn()
7704 zRet = idxAppendText(pRc, zRet, " DESC"); in idxAppendColDefn()
7718 int *pRc, /* OUT: Error code */ in idxFindCompatible() argument
7780 *pRc = rc; in idxFindCompatible()
14224 int *pRc, in shellPrepare() argument
14229 if( *pRc==SQLITE_OK ){ in shellPrepare()
14235 *pRc = rc; in shellPrepare()
14249 int *pRc, in shellPreparePrintf() argument
14255 if( *pRc==SQLITE_OK ){ in shellPreparePrintf()
14262 *pRc = SQLITE_NOMEM; in shellPreparePrintf()
14264 shellPrepare(db, pRc, z, ppStmt); in shellPreparePrintf()
14277 int *pRc, in shellFinalize() argument
14283 if( *pRc==SQLITE_OK ){ in shellFinalize()
14287 *pRc = rc; in shellFinalize()
14299 int *pRc, in shellReset() argument
14303 if( *pRc==SQLITE_OK ){ in shellReset()
14308 *pRc = rc; in shellReset()
14612 int *pRc, in arWhereClause() argument
14617 if( *pRc==SQLITE_OK ){ in arWhereClause()
14630 *pRc = SQLITE_NOMEM; in arWhereClause()
15014 static void shellExec(sqlite3 *db, int *pRc, const char *zSql){ in shellExec() argument
15015 int rc = *pRc; in shellExec()
15022 *pRc = rc; in shellExec()
15029 static void shellExecPrintf(sqlite3 *db, int *pRc, const char *zFmt, ...){ in shellExecPrintf() argument
15031 if( *pRc==SQLITE_OK ){ in shellExecPrintf()
15037 *pRc = SQLITE_NOMEM; in shellExecPrintf()
15039 shellExec(db, pRc, z); in shellExecPrintf()
15051 static void *shellMalloc(int *pRc, sqlite3_int64 nByte){ in shellMalloc() argument
15053 if( *pRc==SQLITE_OK ){ in shellMalloc()
15056 *pRc = SQLITE_NOMEM; in shellMalloc()
15075 static char *shellMPrintf(int *pRc, const char *zFmt, ...){ in shellMPrintf() argument
15077 if( *pRc==SQLITE_OK ){ in shellMPrintf()
15083 *pRc = SQLITE_NOMEM; in shellMPrintf()
15128 int *pRc, /* IN/OUT: Error code */ in recoverNewTable() argument
15135 int rc = *pRc; in recoverNewTable()
15236 *pRc = rc; in recoverNewTable()
15261 int *pRc, /* IN/OUT: Error code */ in recoverFindTable() argument
15274 shellPreparePrintf(pState->db, pRc, &pStmt, in recoverFindTable()
15277 while( *pRc==SQLITE_OK && SQLITE_ROW==sqlite3_step(pStmt) ){ in recoverFindTable()
15286 pRet = recoverNewTable(pRc, zName, zSql, bIntkey, nCol); in recoverFindTable()
15291 shellFinalize(pRc, pStmt); in recoverFindTable()
15301 int *pRc, /* IN/OUT: Error code */ in recoverOrphanTable() argument
15306 if( nCol>=0 && *pRc==SQLITE_OK ){ in recoverOrphanTable()
15314 char *zTab = shellMPrintf(pRc, "%s", zLostAndFound); in recoverOrphanTable()
15316 shellPrepare(pState->db, pRc, in recoverOrphanTable()
15320 while( *pRc==SQLITE_OK && SQLITE_ROW==sqlite3_step(pTest) ){ in recoverOrphanTable()
15321 shellReset(pRc, pTest); in recoverOrphanTable()
15323 zTab = shellMPrintf(pRc, "%s_%d", zLostAndFound, iTab++); in recoverOrphanTable()
15326 shellFinalize(pRc, pTest); in recoverOrphanTable()
15328 pTab = (RecoverTable*)shellMalloc(pRc, sizeof(RecoverTable)); in recoverOrphanTable()
15330 pTab->zQuoted = shellMPrintf(pRc, "\"%w\"", zTab); in recoverOrphanTable()
15334 pTab->azlCol = (char**)shellMalloc(pRc, sizeof(char*) * (nCol+1)); in recoverOrphanTable()
15336 pTab->azlCol[nCol] = shellMPrintf(pRc, ""); in recoverOrphanTable()
15338 pTab->azlCol[i] = shellMPrintf(pRc, "%s, NULL", pTab->azlCol[i+1]); in recoverOrphanTable()
15343 if( *pRc!=SQLITE_OK ){ in recoverOrphanTable()