Lines Matching refs:zRet
48983 static char zRet[1024];
48985 sqlite3_snprintf(1024, zRet,
49020 return zRet;
95166 char *zRet;
95169 zRet = sqlite3DbMallocRaw(pParse->db, nVal+1);
95170 if( zRet ){
95176 zRet[i] = sqlite3CompareAffinity(pSelect->pEList->a[i].pExpr, a);
95178 zRet[i] = a;
95181 zRet[nVal] = '\0';
95183 return zRet;
98084 char *zRet;
98115 zRet = sqlite3MPrintf(db, "%.*s\"%w\"%s", (int)(((u8*)tname.z) - zSql),
98117 sqlite3_result_text(context, zRet, -1, SQLITE_DYNAMIC);
98207 char *zRet;
98256 zRet = sqlite3MPrintf(db, "%.*s\"%w\"%s", (int)(((u8*)tname.z) - zSql),
98258 sqlite3_result_text(context, zRet, -1, SQLITE_DYNAMIC);
99722 char *zRet = sqlite3MallocZero( (p->nKeyCol+1)*25 );
99723 if( zRet==0 ){
99728 sqlite3_snprintf(24, zRet, "%llu", (u64)p->nRow);
99729 z = zRet + sqlite3Strlen30(zRet);
99737 assert( z[0]=='\0' && z>zRet );
99739 sqlite3_result_text(context, zRet, -1, sqlite3_free);
99773 char *zRet = sqlite3MallocZero(p->nCol * 25);
99774 if( zRet==0 ){
99778 char *z = zRet;
99783 assert( z[0]=='\0' && z>zRet );
99785 sqlite3_result_text(context, zRet, -1, sqlite3_free);
115891 const char *zRet = "normal";
115926 zRet = "exclusive";
115928 returnSingleText(v, zRet);
136093 const char *zRet = 0;
136101 zRet = (pC ? pC->zName : "BINARY");
136103 return zRet;
149615 char *zRet;
149617 zRet = sqlite3_malloc(nRet);
149618 if( zRet ){
149620 char *z = zRet;
149629 return zRet;
149656 char *zRet = 0;
149667 fts3Appendf(pRc, &zRet, "docid");
149669 fts3Appendf(pRc, &zRet, ",%s(x.'c%d%q')", zFunction, i, p->azColumn[i]);
149672 fts3Appendf(pRc, &zRet, ", x.%Q", "langid");
149676 fts3Appendf(pRc, &zRet, "rowid");
149678 fts3Appendf(pRc, &zRet, ", x.'%q'", p->azColumn[i]);
149681 fts3Appendf(pRc, &zRet, ", x.%Q", p->zLanguageid);
149684 fts3Appendf(pRc, &zRet, " FROM '%q'.'%q%s' AS x",
149689 return zRet;
149713 char *zRet = 0;
149723 fts3Appendf(pRc, &zRet, "?");
149725 fts3Appendf(pRc, &zRet, ",%s(?)", zFunction);
149728 fts3Appendf(pRc, &zRet, ", ?");
149731 return zRet;
173825 char *zRet = 0;
173830 zRet = (char*)sqlite3_malloc64(nCopy);
173831 if( zRet ){
173832 memcpy(zRet, zStr, nCopy);
173838 return zRet;
174185 char *zRet = 0; /* String to return */
174227 zRet = sqlite3_mprintf("%z%s\"%w\" COLLATE %Q", zRet, zCom, zCol, zCollate);
174240 if( zRet==0 || zImpPK==0 || zImpCols==0 || zWhere==0 ) rc = SQLITE_NOMEM;
174250 sqlite3_free(zRet);
174254 zRet = 0;
174265 return zRet;
174439 char *zRet = 0;
174442 zRet = (char*)rbuMalloc(p, nByte);
174443 if( zRet ){
174446 zRet[i*2] = '?';
174447 zRet[i*2+1] = (i+1==nBind) ? '\0' : ',';
174450 return zRet;
180200 char *zRet = 0;
180204 zRet = sqlite3_mprintf("%z%s\"%w\".\"%w\".\"%w\"=\"%w\".\"%w\".\"%w\"",
180205 zRet, zSep, zDb1, zTab, azCol[i], zDb2, zTab, azCol[i]
180208 if( zRet==0 ) break;
180212 return zRet;
180223 char *zRet = 0;
180229 zRet = sqlite3_mprintf(
180231 zRet, zSep, zDb1, zTab, azCol[i], zDb2, zTab, azCol[i]
180234 if( zRet==0 ) break;
180239 assert( zRet==0 );
180240 zRet = sqlite3_mprintf("0");
180243 return zRet;
180253 char *zRet = sqlite3_mprintf(
180259 return zRet;
189201 const char *zRet = (const char*)sqlite3_value_text(pVal);
189202 return zRet ? zRet : "";
189671 char *zRet = 0;
189675 zRet = sqlite3_vmprintf(zFmt, ap);
189677 if( zRet==0 ){
189681 return zRet;
189818 char *zRet = 0;
189823 zRet = (char*)sqlite3_malloc(nIn+1);
189824 if( zRet ){
189825 memcpy(zRet, pIn, nIn);
189826 zRet[nIn] = '\0';
189831 return zRet;
190370 const char *zRet = 0;
190385 zRet = &zIn[ii];
190388 zRet = fts5ConfigSkipBareword(zIn);
190389 if( zRet ){
190390 zOut[zRet-zIn] = '\0';
190395 if( zRet==0 ){
190401 return zRet;
193184 char *zRet = 0;
193190 zRet = fts5PrintfAppend(zRet, "%s ", zNearsetCmd);
193191 if( zRet==0 ) return 0;
193196 zRet = fts5PrintfAppend(zRet, "-col %d ", aiCol[0]);
193198 zRet = fts5PrintfAppend(zRet, "-col {%d", aiCol[0]);
193200 zRet = fts5PrintfAppend(zRet, " %d", aiCol[i]);
193202 zRet = fts5PrintfAppend(zRet, "} ");
193204 if( zRet==0 ) return 0;
193208 zRet = fts5PrintfAppend(zRet, "-near %d ", pNear->nNear);
193209 if( zRet==0 ) return 0;
193212 zRet = fts5PrintfAppend(zRet, "--");
193213 if( zRet==0 ) return 0;
193218 zRet = fts5PrintfAppend(zRet, " {");
193219 for(iTerm=0; zRet && iTerm<pPhrase->nTerm; iTerm++){
193221 zRet = fts5PrintfAppend(zRet, "%s%s", iTerm==0?"":" ", zTerm);
193223 zRet = fts5PrintfAppend(zRet, "*");
193227 if( zRet ) zRet = fts5PrintfAppend(zRet, "}");
193228 if( zRet==0 ) return 0;
193243 zRet = sqlite3_mprintf("%s", zOp);
193244 for(i=0; zRet && i<pExpr->nChild; i++){
193247 sqlite3_free(zRet);
193248 zRet = 0;
193250 zRet = fts5PrintfAppend(zRet, " [%z]", z);
193255 return zRet;
193259 char *zRet = 0;
193270 zRet = fts5PrintfAppend(zRet, "%s : ", pConfig->azCol[iCol]);
193271 if( zRet==0 ) return 0;
193275 zRet = fts5PrintfAppend(zRet, "NEAR(");
193276 if( zRet==0 ) return 0;
193282 zRet = fts5PrintfAppend(zRet, " ");
193283 if( zRet==0 ) return 0;
193288 zRet = fts5PrintfAppend(zRet, "%s%s", iTerm==0?"":" + ", zTerm);
193291 if( zTerm==0 || zRet==0 ){
193292 sqlite3_free(zRet);
193299 zRet = fts5PrintfAppend(zRet, ", %d)", pNear->nNear);
193300 if( zRet==0 ) return 0;
193319 sqlite3_free(zRet);
193320 zRet = 0;
193324 zRet = fts5PrintfAppend(zRet, "%s%s%z%s",
193329 if( zRet==0 ) break;
193333 return zRet;