Lines Matching refs:sqlite3_mprintf
920 zSql = sqlite3_mprintf("PRAGMA \"%w\".table_info=%Q;", in shellFakeSchema()
969 sqlite3_result_text(pCtx, sqlite3_mprintf("/* %s */", zFake), in shellModuleSchema()
1022 z = sqlite3_mprintf("%.*s \"%w\".%s", n+7, zIn, zSchema, zIn+n+8); in shellAddSchemaName()
1024 z = sqlite3_mprintf("%.*s %s.%s", n+7, zIn, zSchema, zIn+n+8); in shellAddSchemaName()
1032 z = sqlite3_mprintf("%s\n/* %s */", zIn, zFake); in shellAddSchemaName()
1034 z = sqlite3_mprintf("%z\n/* %s */", z, zFake); in shellAddSchemaName()
2139 char *zMsg = sqlite3_mprintf("error SQL statement [%s]: %s", in sha3QueryFunc()
2147 char *zMsg = sqlite3_mprintf("non-query: [%s]", sqlite3_sql(pStmt)); in sha3QueryFunc()
3656 pVTab->zErrMsg = sqlite3_mprintf( in seriesBestIndex()
3735 *pzErrMsg = sqlite3_mprintf( in sqlite3_series_init()
4956 char *zCopy = sqlite3_mprintf("%s", zFile); in makeDirectory()
5356 pCur->zPath = sqlite3_mprintf("%s/%s", pLvl->zDir, pEntry->d_name); in fsdirNext()
5493 pCur->zPath = sqlite3_mprintf("%s/%s", pCur->zBase, zDir); in fsdirFilter()
5495 pCur->zPath = sqlite3_mprintf("%s", zDir); in fsdirFilter()
5889 zSql = sqlite3_mprintf( in completionNext()
5913 zSql = sqlite3_mprintf( in completionNext()
6028 pCur->zPrefix = sqlite3_mprintf("%s", sqlite3_value_text(argv[iArg])); in completionFilter()
6036 pCur->zLine = sqlite3_mprintf("%s", sqlite3_value_text(argv[iArg])); in completionFilter()
6047 pCur->zPrefix = sqlite3_mprintf("%.*s", pCur->nPrefix, pCur->zLine + i); in completionFilter()
6525 *(char**)pArg = sqlite3_mprintf("apnd(%lld)/%z", paf->iPgOne,*(char**)pArg); in apndFileControl()
7210 *pzErr = sqlite3_mprintf("zipfile constructor requires one argument"); in zipfileConnect()
7375 *pzErrmsg = sqlite3_mprintf("error in fread()"); in zipfileReadData()
7391 pTab->base.zErrMsg = sqlite3_mprintf("error in fwrite()"); in zipfileAppendData()
7682 *pzErr = sqlite3_mprintf("failed to read CDS at offset %lld", iOff); in zipfileGetEntry()
7694 pNew->cds.zFile = sqlite3_mprintf("%.*s", nFile, aRead); in zipfileGetEntry()
7722 *pzErr = sqlite3_mprintf("failed to read LFH at offset %d", in zipfileGetEntry()
7862 *pzErr = sqlite3_mprintf("zipfile: deflate() error"); in zipfileDeflate()
8018 pTab->base.zErrMsg = sqlite3_mprintf( in zipfileReadEOCD()
8186 pNew->cds.zFile = sqlite3_mprintf("%s", zPath); in zipfileNewEntry()
8278 *pzErr = sqlite3_mprintf("zipfile: mode does not match data"); in zipfileGetMode()
8285 *pzErr = sqlite3_mprintf("zipfile: parse error in mode: %s", z); in zipfileGetMode()
8307 pTab->base.zErrMsg = sqlite3_mprintf("zipfile: missing filename"); in zipfileBegin()
8317 pTab->base.zErrMsg = sqlite3_mprintf( in zipfileBegin()
8496 zFree = sqlite3_mprintf("%s/", zPath); in zipfileUpdate()
8698 char *zRes = sqlite3_mprintf("{" in zipfileFunctionCds()
8823 zErr = sqlite3_mprintf("wrong number of arguments to function zipfile()"); in zipfileStep()
8843 zErr = sqlite3_mprintf("first argument to zipfile() must be non-NULL"); in zipfileStep()
8853 zErr = sqlite3_mprintf("illegal method value: %d", iMethod); in zipfileStep()
8897 zErr = sqlite3_mprintf("non-directory name must not end with /"); in zipfileStep()
8903 zName = zFree = sqlite3_mprintf("%s/", zName); in zipfileStep()
9675 *pzErrmsg = sqlite3_mprintf("%s", sqlite3_errmsg(db)); in idxDatabaseError()
9781 *pzErr = sqlite3_mprintf("internal error!"); in expertConnect()
10355 zName = sqlite3_mprintf("%s_idx_%08x", zTable, h); in idxCreateFromCons()
10360 zFind = sqlite3_mprintf(zFmt, zName); in idxCreateFromCons()
10382 zIdx = sqlite3_mprintf(zFmt, zName, zTable, zCols); in idxCreateFromCons()
10679 char *z = sqlite3_mprintf("ALTER TABLE temp.%Q RENAME TO %Q", zTab, zInt); in idxProcessOneTrigger()
10711 zWrite = sqlite3_mprintf("DELETE FROM %Q", zInt); in idxProcessOneTrigger()
10990 zQuery = sqlite3_mprintf( in idxPopulateOneStat1()
10994 zQuery = sqlite3_mprintf( in idxPopulateOneStat1()
11028 zStat = sqlite3_mprintf("%d", s0); in idxPopulateOneStat1()
11064 zSql = sqlite3_mprintf( in idxBuildSampleTable()
11323 *pzErr = sqlite3_mprintf("Cannot find a unique index name to propose."); in sqlite3_expert_analyze()
12139 zSql = sqlite3_mprintf("SELECT %.*s(0)", nFunc, zSchema); in dbdataDbsize()
12141 zSql = sqlite3_mprintf("PRAGMA %Q.page_count", zSchema); in dbdataDbsize()
12206 char *zSql = sqlite3_mprintf("SELECT %.*s(?2)", nFunc, zSchema); in dbdataFilter()
12223 pTab->base.zErrMsg = sqlite3_mprintf("%s", sqlite3_errmsg(pTab->db)); in dbdataFilter()
15827 zTempFile = sqlite3_mprintf("temp%llx", r); in editFunc()
15856 zCmd = sqlite3_mprintf("%s \"%s\"", zEditor, zTempFile); in editFunc()
16222 char *zQuoted = sqlite3_mprintf("\"%w\"", z); in output_csv()
16374 char *zNew = sqlite3_mprintf("%s%s;", zOrig, azTerm[i]); in printSchemaLine()
16646 z = sqlite3_mprintf("%s", azArg[0]); in shell_callback()
16778 char *z = sqlite3_mprintf("\"%w\"", azCol[i]); in shell_callback()
17060 return sqlite3_mprintf(""); in shell_error_context()
17072 zCode = sqlite3_mprintf("%.*s", len, zSql); in shell_error_context()
17076 zMsg = sqlite3_mprintf("\n %z\n %*s^--- error here", zCode, iOffset, ""); in shell_error_context()
17078 zMsg = sqlite3_mprintf("\n %z\n %*serror here ---^", zCode, iOffset-14, ""); in shell_error_context()
17795 return sqlite3_mprintf("NULL"); in quoted_column()
17799 return sqlite3_mprintf("%s",sqlite3_column_text(pStmt,i)); in quoted_column()
17802 return sqlite3_mprintf("%Q",sqlite3_column_text(pStmt,i)); in quoted_column()
18331 zEQP = sqlite3_mprintf("EXPLAIN QUERY PLAN %s", zStmtSql); in shell_exec()
18349 zEQP = sqlite3_mprintf("EXPLAIN %s", zStmtSql); in shell_exec()
18462 zSql = sqlite3_mprintf("PRAGMA table_info=%Q", zTab); in tableColumnList()
18473 azCol[++nCol] = sqlite3_mprintf("%s", sqlite3_column_text(pStmt, 1)); in tableColumnList()
18506 zSql = sqlite3_mprintf("SELECT 1 FROM pragma_index_list(%Q)" in tableColumnList()
18598 zIns = sqlite3_mprintf( in dump_callback()
19042 zPat = sqlite3_mprintf(".%s*", zPattern); in showHelp()
19065 zPat = sqlite3_mprintf("%%%s%%", zPattern); in showHelp()
19347 char *z = sqlite3_mprintf("\"%w\"", zName); in shellIdQuote()
19565 char *zSql = sqlite3_mprintf( in open_db()
19623 zSql = sqlite3_mprintf("SELECT DISTINCT candidate COLLATE nocase" in readline_completion_generator()
19661 zSql = sqlite3_mprintf("SELECT DISTINCT candidate COLLATE nocase" in linenoise_completion()
20058 zQuery = sqlite3_mprintf("SELECT * FROM \"%w\"", zTable); in tryToCloneData()
20130 zQuery = sqlite3_mprintf("SELECT * FROM \"%w\" ORDER BY rowid DESC;", in tryToCloneData()
20167 zQuery = sqlite3_mprintf("SELECT name, sql FROM sqlite_schema" in tryToCloneSchema()
20196 zQuery = sqlite3_mprintf("SELECT name, sql FROM sqlite_schema" in tryToCloneSchema()
20280 zCmd = sqlite3_mprintf("%s %s", zXdgOpenCmd, p->zTempFile); in output_reset()
20403 zSchemaTab = sqlite3_mprintf("main.sqlite_schema"); in shell_dbinfo_command()
20405 zSchemaTab = sqlite3_mprintf("%s", "sqlite_temp_schema"); in shell_dbinfo_command()
20407 zSchemaTab = sqlite3_mprintf("\"%w\".sqlite_schema", zDb); in shell_dbinfo_command()
20410 char *zSql = sqlite3_mprintf(aQuery[i].zSql, zSchemaTab); in shell_dbinfo_command()
20592 p->zTempFile = sqlite3_mprintf("%s/temp%llx.%s", zTemp, r, zSuffix); in newTempFile()
20594 p->zTempFile = sqlite3_mprintf("%z.%s", p->zTempFile, zSuffix); in newTempFile()
20646 char *z = sqlite3_mprintf(" COLLATE %s", zParentSeq); in shellFkeyCollateClause()
20799 zPrev = sqlite3_mprintf("%s", zParent); in lintFkeyIndexes()
21260 zWhere = sqlite3_mprintf("1"); in arWhereClause()
21266 zWhere = sqlite3_mprintf( in arWhereClause()
21337 zSql = sqlite3_mprintf("DELETE FROM %s WHERE %s;", in arRemoveCommand()
21393 zDir = sqlite3_mprintf("%s/", pAr->zDir); in arExtractCommand()
21395 zDir = sqlite3_mprintf(""); in arExtractCommand()
21528 zSql = sqlite3_mprintf( in arCreateOrUpdateCommand()
21547 zExists = sqlite3_mprintf( in arCreateOrUpdateCommand()
21554 zExists = sqlite3_mprintf(""); in arCreateOrUpdateCommand()
21558 char *zSql2 = sqlite3_mprintf(zInsertFmt[pAr->bZip], zTab, in arCreateOrUpdateCommand()
21570 zSql = sqlite3_mprintf("DROP TABLE %s", zTemp); in arCreateOrUpdateCommand()
21605 cmd.zSrcTable = sqlite3_mprintf("zip"); in arDotCommand()
21607 cmd.zSrcTable = sqlite3_mprintf("zipfile(%Q)", cmd.zFile); in arDotCommand()
21647 cmd.zSrcTable = sqlite3_mprintf("sqlar"); in arDotCommand()
21966 zColsSpec = sqlite3_mprintf("%s", sqlite3_column_text(pStmt, 0)); in zAutoColumn()
21976 *pzRenamed = sqlite3_mprintf("%s", sqlite3_column_text(pStmt, 0)); in zAutoColumn()
22416 char *zExpr = sqlite3_mprintf( in do_meta_command()
22426 zLike = sqlite3_mprintf("%z OR %z", zLike, zExpr); in do_meta_command()
22449 if( zLike==0 ) zLike = sqlite3_mprintf("true"); in do_meta_command()
22450 zSql = sqlite3_mprintf( in do_meta_command()
22460 zSql = sqlite3_mprintf( in do_meta_command()
22933 zFullTabName = sqlite3_mprintf("\"%w\".\"%w\"", zSchema, zTable); in do_meta_command()
22935 zFullTabName = sqlite3_mprintf("\"%w\"", zTable); in do_meta_command()
22937 zSql = sqlite3_mprintf("SELECT * FROM %s", zFullTabName); in do_meta_command()
22949 zCreate = sqlite3_mprintf("CREATE TABLE %s", zFullTabName); in do_meta_command()
22972 zCreate = sqlite3_mprintf("%z%z\n", zCreate, zColDefs); in do_meta_command()
23105 zSql = sqlite3_mprintf( in do_meta_command()
23121 zSql = sqlite3_mprintf("PRAGMA index_xinfo='%q'", azArg[1]); in do_meta_command()
23141 zCollist = sqlite3_mprintf("\"%w\"", zCol); in do_meta_command()
23143 zCollist = sqlite3_mprintf("%z,\"%w\"", zCollist, zCol); in do_meta_command()
23154 zSql = sqlite3_mprintf( in do_meta_command()
23524 zNewFilename = sqlite3_mprintf("%s", zFN); in do_meta_command()
23587 zFile = sqlite3_mprintf("%s", z); in do_meta_command()
23589 while( i+1<nArg ) zFile = sqlite3_mprintf("%z %s", zFile, azArg[++i]); in do_meta_command()
23602 zFile = sqlite3_mprintf("stdout"); in do_meta_command()
23627 zFile = sqlite3_mprintf("%s", p->zTempFile); in do_meta_command()
23725 zSql = sqlite3_mprintf( in do_meta_command()
23735 zSql = sqlite3_mprintf( in do_meta_command()
23757 char *zSql = sqlite3_mprintf( in do_meta_command()
23983 new_argv[0] = sqlite3_mprintf( in do_meta_command()
24042 char *zQarg = sqlite3_mprintf("%Q", zName); in do_meta_command()
24213 char *x = pSession->azFilter[ii-1] = sqlite3_mprintf("%s", azCmd[ii]); in do_meta_command()
24285 pSession->zName = sqlite3_mprintf("%s", zName); in do_meta_command()
24532 zSql = sqlite3_mprintf( in do_meta_command()
24538 zSql = sqlite3_mprintf( in do_meta_command()
24568 zCmd = sqlite3_mprintf(strchr(azArg[1],' ')==0?"%s":"\"%s\"", azArg[1]); in do_meta_command()
24570 zCmd = sqlite3_mprintf(strchr(azArg[i],' ')==0?"%z %s":"%z \"%s\"", in do_meta_command()
24723 azResult[nRow] = sqlite3_mprintf("%s", sqlite3_column_text(pStmt, 0)); in do_meta_command()
25683 zBuf = sqlite3_mprintf("%s/.sqliterc",home_dir); in process_sqliterc()