Lines Matching refs:pVar

82   Mem *pVar;               /* Value of a host parameter */  in sqlite3VdbeExpandSql()  local
128 pVar = &p->aVar[idx-1]; in sqlite3VdbeExpandSql()
129 if( pVar->flags & MEM_Null ){ in sqlite3VdbeExpandSql()
131 }else if( pVar->flags & (MEM_Int|MEM_IntReal) ){ in sqlite3VdbeExpandSql()
132 sqlite3_str_appendf(&out, "%lld", pVar->u.i); in sqlite3VdbeExpandSql()
133 }else if( pVar->flags & MEM_Real ){ in sqlite3VdbeExpandSql()
134 sqlite3_str_appendf(&out, "%!.15g", pVar->u.r); in sqlite3VdbeExpandSql()
135 }else if( pVar->flags & MEM_Str ){ in sqlite3VdbeExpandSql()
142 sqlite3VdbeMemSetStr(&utf8, pVar->z, pVar->n, enc, SQLITE_STATIC); in sqlite3VdbeExpandSql()
147 pVar = &utf8; in sqlite3VdbeExpandSql()
150 nOut = pVar->n; in sqlite3VdbeExpandSql()
154 while( nOut<pVar->n && (pVar->z[nOut]&0xc0)==0x80 ){ nOut++; } in sqlite3VdbeExpandSql()
157 sqlite3_str_appendf(&out, "'%.*q'", nOut, pVar->z); in sqlite3VdbeExpandSql()
159 if( nOut<pVar->n ){ in sqlite3VdbeExpandSql()
160 sqlite3_str_appendf(&out, "/*+%d bytes*/", pVar->n-nOut); in sqlite3VdbeExpandSql()
166 }else if( pVar->flags & MEM_Zero ){ in sqlite3VdbeExpandSql()
167 sqlite3_str_appendf(&out, "zeroblob(%d)", pVar->u.nZero); in sqlite3VdbeExpandSql()
170 assert( pVar->flags & MEM_Blob ); in sqlite3VdbeExpandSql()
172 nOut = pVar->n; in sqlite3VdbeExpandSql()
177 sqlite3_str_appendf(&out, "%02x", pVar->z[i]&0xff); in sqlite3VdbeExpandSql()
181 if( nOut<pVar->n ){ in sqlite3VdbeExpandSql()
182 sqlite3_str_appendf(&out, "/*+%d bytes*/", pVar->n-nOut); in sqlite3VdbeExpandSql()