Home | History | Annotate | Download | only in dist

Lines Matching defs:pStmt

383 static void columnToResult(sqlite3_context *ctx, sqlite3_stmt *pStmt, int iCol){
384 switch( sqlite3_column_type(pStmt, iCol) ){
389 sqlite3_result_int64(ctx, sqlite3_column_int64(pStmt, iCol));
392 sqlite3_result_double(ctx, sqlite3_column_double(pStmt, iCol));
395 const char *z = (const char *)sqlite3_column_text(pStmt, iCol);
738 sqlite3_stmt *pStmt;
740 rc = sqlite3_prepare(db, zSql, -1, &pStmt, 0);
744 while( SQLITE_ROW==sqlite3_step(pStmt) ){
746 int iFk = sqlite3_column_int(pStmt, 0);
747 const char *zTab = (const char *)sqlite3_column_text(pStmt, 1);
759 sqlite3_finalize(pStmt);
1279 sqlite3_stmt *pStmt; /* Current statement if any. */
1515 if( p->echoOn && p->cnt==0 && p->pStmt){
1516 printf("%s\n", sqlite3_sql(p->pStmt));
1673 }else if( aiType && aiType[i]==SQLITE_BLOB && p->pStmt ){
1674 const void *pBlob = sqlite3_column_blob(p->pStmt, i);
1675 int nBlob = sqlite3_column_bytes(p->pStmt, i);
1847 sqlite3_stmt *pStmt = NULL; /* Statement to execute. */
1856 rc = sqlite3_prepare_v2(db, zSql, -1, &pStmt, &zLeftover);
1862 if( !pStmt ){
1872 rc = sqlite3_step(pStmt);
1878 int nCol = sqlite3_column_count(pStmt);
1890 azCols[i] = (char *)sqlite3_column_name(pStmt, i);
1894 pArg->pStmt = pStmt;
1900 azVals[i] = (char *)sqlite3_column_text(pStmt, i);
1901 aiTypes[i] = sqlite3_column_type(pStmt, i);
1914 rc = sqlite3_step(pStmt);
1920 pArg->pStmt = NULL;
1925 rc = sqlite3_step(pStmt);
1933 rc = sqlite3_finalize(pStmt);
2495 sqlite3_stmt *pStmt = NULL; /* A statement */
2519 rc = sqlite3_prepare(p->db, zSql, -1, &pStmt, 0);
2522 if (pStmt) sqlite3_finalize(pStmt);
2526 nCol = sqlite3_column_count(pStmt);
2527 sqlite3_finalize(pStmt);
2528 pStmt = 0;
2543 rc = sqlite3_prepare(p->db, zSql, -1, &pStmt, 0);
2547 if (pStmt) sqlite3_finalize(pStmt);
2553 sqlite3_finalize(pStmt);
2560 sqlite3_finalize(pStmt);
2591 sqlite3_bind_text(pStmt, i+1, azCol[i], -1, SQLITE_STATIC);
2593 sqlite3_step(pStmt);
2594 rc = sqlite3_reset(pStmt);
2605 sqlite3_finalize(pStmt);