Lines Matching refs:pOut

386   Mem *pOut = pCtx->pOut;  in setResultStrOrError()  local
387 int rc = sqlite3VdbeMemSetStr(pOut, z, n, enc, xDel); in setResultStrOrError()
399 sqlite3VdbeChangeEncoding(pOut, pCtx->enc); in setResultStrOrError()
400 if( sqlite3VdbeMemTooBig(pOut) ){ in setResultStrOrError()
427 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_blob()
436 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_blob64()
445 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_double()
446 sqlite3VdbeMemSetDouble(pCtx->pOut, rVal); in sqlite3_result_double()
449 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_error()
451 sqlite3VdbeMemSetStr(pCtx->pOut, z, n, SQLITE_UTF8, SQLITE_TRANSIENT); in sqlite3_result_error()
455 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_error16()
457 sqlite3VdbeMemSetStr(pCtx->pOut, z, n, SQLITE_UTF16NATIVE, SQLITE_TRANSIENT); in sqlite3_result_error16()
461 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_int()
462 sqlite3VdbeMemSetInt64(pCtx->pOut, (i64)iVal); in sqlite3_result_int()
465 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_int64()
466 sqlite3VdbeMemSetInt64(pCtx->pOut, iVal); in sqlite3_result_int64()
469 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_null()
470 sqlite3VdbeMemSetNull(pCtx->pOut); in sqlite3_result_null()
478 Mem *pOut = pCtx->pOut; in sqlite3_result_pointer() local
479 assert( sqlite3_mutex_held(pOut->db->mutex) ); in sqlite3_result_pointer()
480 sqlite3VdbeMemRelease(pOut); in sqlite3_result_pointer()
481 pOut->flags = MEM_Null; in sqlite3_result_pointer()
482 sqlite3VdbeMemSetPointer(pOut, pPtr, zPType, xDestructor); in sqlite3_result_pointer()
485 Mem *pOut = pCtx->pOut; in sqlite3_result_subtype() local
486 assert( sqlite3_mutex_held(pOut->db->mutex) ); in sqlite3_result_subtype()
487 pOut->eSubtype = eSubtype & 0xff; in sqlite3_result_subtype()
488 pOut->flags |= MEM_Subtype; in sqlite3_result_subtype()
496 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_text()
506 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_text64()
522 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_text16()
531 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_text16be()
540 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_text16le()
545 Mem *pOut = pCtx->pOut; in sqlite3_result_value() local
546 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_value()
547 sqlite3VdbeMemCopy(pOut, pValue); in sqlite3_result_value()
548 sqlite3VdbeChangeEncoding(pOut, pCtx->enc); in sqlite3_result_value()
549 if( sqlite3VdbeMemTooBig(pOut) ){ in sqlite3_result_value()
557 Mem *pOut = pCtx->pOut; in sqlite3_result_zeroblob64() local
558 assert( sqlite3_mutex_held(pOut->db->mutex) ); in sqlite3_result_zeroblob64()
559 if( n>(u64)pOut->db->aLimit[SQLITE_LIMIT_LENGTH] ){ in sqlite3_result_zeroblob64()
564 sqlite3VdbeMemSetZeroBlob(pCtx->pOut, (int)n); in sqlite3_result_zeroblob64()
567 return sqlite3VdbeMemSetZeroBlob(pCtx->pOut, (int)n); in sqlite3_result_zeroblob64()
575 if( pCtx->pOut->flags & MEM_Null ){ in sqlite3_result_error_code()
583 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_error_toobig()
585 sqlite3VdbeMemSetStr(pCtx->pOut, "string or blob too big", -1, in sqlite3_result_error_toobig()
591 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_result_error_nomem()
592 sqlite3VdbeMemSetNull(pCtx->pOut); in sqlite3_result_error_nomem()
594 sqlite3OomFault(pCtx->pOut->db); in sqlite3_result_error_nomem()
603 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3ResultIntReal()
604 if( pCtx->pOut->flags & MEM_Int ){ in sqlite3ResultIntReal()
605 pCtx->pOut->flags &= ~MEM_Int; in sqlite3ResultIntReal()
606 pCtx->pOut->flags |= MEM_IntReal; in sqlite3ResultIntReal()
858 assert( p && p->pOut ); in sqlite3_context_db_handle()
859 return p->pOut->db; in sqlite3_context_db_handle()
878 return sqlite3_value_nochange(p->pOut); in sqlite3_vtab_nochange()
914 sqlite3_value *pOut = pRhs->pOut; in valueFromValueList() local
916 sqlite3VdbeSerialGet(&zBuf[iOff], iSerial, pOut); in valueFromValueList()
917 pOut->enc = ENC(pOut->db); in valueFromValueList()
918 if( (pOut->flags & MEM_Ephem)!=0 && sqlite3VdbeMemMakeWriteable(pOut) ){ in valueFromValueList()
921 *ppOut = pOut; in valueFromValueList()
962 rc = sqlite3OsCurrentTimeInt64(p->pOut->db->pVfs, piTime); in sqlite3StmtCurrentTime()
996 assert( sqlite3_mutex_held(p->pOut->db->mutex) ); in sqlite3_aggregate_context()
1018 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_get_auxdata()
1052 assert( sqlite3_mutex_held(pCtx->pOut->db->mutex) ); in sqlite3_set_auxdata()
1165 Mem *pOut; in columnMem() local
1172 pOut = &pVm->pResultSet[i]; in columnMem()
1175 pOut = (Mem*)columnNullValue(); in columnMem()
1177 return pOut; in columnMem()
1259 Mem *pOut = columnMem(pStmt, i); in sqlite3_column_value() local
1260 if( pOut->flags&MEM_Static ){ in sqlite3_column_value()
1261 pOut->flags &= ~MEM_Static; in sqlite3_column_value()
1262 pOut->flags |= MEM_Ephem; in sqlite3_column_value()
1265 return (sqlite3_value *)pOut; in sqlite3_column_value()
2112 void *pOut /* OUT: Write the answer here */ in sqlite3_stmt_scanstatus() argument
2120 *(sqlite3_int64*)pOut = p->anExec[pScan->addrLoop]; in sqlite3_stmt_scanstatus()
2124 *(sqlite3_int64*)pOut = p->anExec[pScan->addrVisit]; in sqlite3_stmt_scanstatus()
2134 *(double*)pOut = r*sqlite3LogEstToInt(x); in sqlite3_stmt_scanstatus()
2138 *(const char**)pOut = pScan->zName; in sqlite3_stmt_scanstatus()
2143 *(const char**)pOut = p->aOp[ pScan->addrExplain ].p4.z; in sqlite3_stmt_scanstatus()
2145 *(const char**)pOut = 0; in sqlite3_stmt_scanstatus()
2151 *(int*)pOut = p->aOp[ pScan->addrExplain ].p1; in sqlite3_stmt_scanstatus()
2153 *(int*)pOut = -1; in sqlite3_stmt_scanstatus()