Lines Matching refs:sqlite3_mprintf
933 zSql = sqlite3_mprintf("PRAGMA \"%w\".table_info=%Q;", in shellFakeSchema()
978 sqlite3_result_text(pCtx, sqlite3_mprintf("/* %s */", zFake), in shellModuleSchema()
1031 z = sqlite3_mprintf("%.*s \"%w\".%s", n+7, zIn, zSchema, zIn+n+8); in shellAddSchemaName()
1033 z = sqlite3_mprintf("%.*s %s.%s", n+7, zIn, zSchema, zIn+n+8); in shellAddSchemaName()
1041 z = sqlite3_mprintf("%s\n/* %s */", zIn, zFake); in shellAddSchemaName()
1043 z = sqlite3_mprintf("%z\n/* %s */", z, zFake); in shellAddSchemaName()
2036 char *zMsg = sqlite3_mprintf("error SQL statement [%s]: %s", in sha3QueryFunc()
2044 char *zMsg = sqlite3_mprintf("non-query: [%s]", sqlite3_sql(pStmt)); in sha3QueryFunc()
2478 char *zCopy = sqlite3_mprintf("%s", zFile); in makeDirectory()
2877 pCur->zPath = sqlite3_mprintf("%s/%s", pLvl->zDir, pEntry->d_name); in fsdirNext()
3014 pCur->zPath = sqlite3_mprintf("%s/%s", pCur->zBase, zDir); in fsdirFilter()
3016 pCur->zPath = sqlite3_mprintf("%s", zDir); in fsdirFilter()
3410 zSql = sqlite3_mprintf( in completionNext()
3434 zSql = sqlite3_mprintf( in completionNext()
3549 pCur->zPrefix = sqlite3_mprintf("%s", sqlite3_value_text(argv[iArg])); in completionFilter()
3557 pCur->zLine = sqlite3_mprintf("%s", sqlite3_value_text(argv[iArg])); in completionFilter()
3568 pCur->zPrefix = sqlite3_mprintf("%.*s", pCur->nPrefix, pCur->zLine + i); in completionFilter()
4046 *(char**)pArg = sqlite3_mprintf("apnd(%lld)/%z", paf->iPgOne,*(char**)pArg); in apndFileControl()
5875 pVTab->zErrMsg = sqlite3_mprintf( in seriesBestIndex()
5954 *pzErrMsg = sqlite3_mprintf( in sqlite3_series_init()
7106 *pzErr = sqlite3_mprintf("zipfile constructor requires one argument"); in zipfileConnect()
7271 *pzErrmsg = sqlite3_mprintf("error in fread()"); in zipfileReadData()
7287 pTab->base.zErrMsg = sqlite3_mprintf("error in fwrite()"); in zipfileAppendData()
7578 *pzErr = sqlite3_mprintf("failed to read CDS at offset %lld", iOff); in zipfileGetEntry()
7590 pNew->cds.zFile = sqlite3_mprintf("%.*s", nFile, aRead); in zipfileGetEntry()
7618 *pzErr = sqlite3_mprintf("failed to read LFH at offset %d", in zipfileGetEntry()
7758 *pzErr = sqlite3_mprintf("zipfile: deflate() error"); in zipfileDeflate()
7914 pTab->base.zErrMsg = sqlite3_mprintf( in zipfileReadEOCD()
8077 pNew->cds.zFile = sqlite3_mprintf("%s", zPath); in zipfileNewEntry()
8169 *pzErr = sqlite3_mprintf("zipfile: mode does not match data"); in zipfileGetMode()
8176 *pzErr = sqlite3_mprintf("zipfile: parse error in mode: %s", z); in zipfileGetMode()
8198 pTab->base.zErrMsg = sqlite3_mprintf("zipfile: missing filename"); in zipfileBegin()
8208 pTab->base.zErrMsg = sqlite3_mprintf( in zipfileBegin()
8387 zFree = sqlite3_mprintf("%s/", zPath); in zipfileUpdate()
8589 char *zRes = sqlite3_mprintf("{" in zipfileFunctionCds()
8714 zErr = sqlite3_mprintf("wrong number of arguments to function zipfile()"); in zipfileStep()
8734 zErr = sqlite3_mprintf("first argument to zipfile() must be non-NULL"); in zipfileStep()
8744 zErr = sqlite3_mprintf("illegal method value: %d", iMethod); in zipfileStep()
8788 zErr = sqlite3_mprintf("non-directory name must not end with /"); in zipfileStep()
8794 zName = zFree = sqlite3_mprintf("%s/", zName); in zipfileStep()
9562 *pzErrmsg = sqlite3_mprintf("%s", sqlite3_errmsg(db)); in idxDatabaseError()
9668 *pzErr = sqlite3_mprintf("internal error!"); in expertConnect()
10227 zName = sqlite3_mprintf("%s_idx_%08x", zTable, h); in idxCreateFromCons()
10232 zFind = sqlite3_mprintf(zFmt, zName); in idxCreateFromCons()
10254 zIdx = sqlite3_mprintf(zFmt, zName, zTable, zCols); in idxCreateFromCons()
10550 char *z = sqlite3_mprintf("ALTER TABLE temp.%Q RENAME TO %Q", zTab, zInt); in idxProcessOneTrigger()
10582 zWrite = sqlite3_mprintf("DELETE FROM %Q", zInt); in idxProcessOneTrigger()
10857 zQuery = sqlite3_mprintf( in idxPopulateOneStat1()
10861 zQuery = sqlite3_mprintf( in idxPopulateOneStat1()
10895 zStat = sqlite3_mprintf("%d", s0); in idxPopulateOneStat1()
10931 zSql = sqlite3_mprintf( in idxBuildSampleTable()
11189 *pzErr = sqlite3_mprintf("Cannot find a unique index name to propose."); in sqlite3_expert_analyze()
11951 zSql = sqlite3_mprintf("PRAGMA %Q.page_count", zSchema); in dbdataDbsize()
12003 pTab->base.zErrMsg = sqlite3_mprintf("%s", sqlite3_errmsg(pTab->db)); in dbdataFilter()
12449 zTempFile = sqlite3_mprintf("temp%llx", r); in editFunc()
12478 zCmd = sqlite3_mprintf("%s \"%s\"", zEditor, zTempFile); in editFunc()
12831 char *zQuoted = sqlite3_mprintf("\"%w\"", z); in output_csv()
13222 z = sqlite3_mprintf("%s", azArg[0]); in shell_callback()
13353 char *z = sqlite3_mprintf("\"%w\"", azCol[i]); in shell_callback()
13673 return sqlite3_mprintf(zWhen, sqlite3_errmsg(db), rc); in save_err_msg()
14629 zEQP = sqlite3_mprintf("EXPLAIN QUERY PLAN %s", zStmtSql); in shell_exec()
14646 zEQP = sqlite3_mprintf("EXPLAIN %s", zStmtSql); in shell_exec()
14758 zSql = sqlite3_mprintf("PRAGMA table_info=%Q", zTab); in tableColumnList()
14768 azCol[++nCol] = sqlite3_mprintf("%s", sqlite3_column_text(pStmt, 1)); in tableColumnList()
14800 zSql = sqlite3_mprintf("SELECT 1 FROM pragma_index_list(%Q)" in tableColumnList()
14889 zIns = sqlite3_mprintf( in dump_callback()
15293 zPat = sqlite3_mprintf(".%s*", zPattern); in showHelp()
15315 zPat = sqlite3_mprintf("%%%s%%", zPattern); in showHelp()
15599 char *z = sqlite3_mprintf("\"%w\"", zName); in shellIdQuote()
15813 char *zSql = sqlite3_mprintf( in open_db()
15870 zSql = sqlite3_mprintf("SELECT DISTINCT candidate COLLATE nocase" in readline_completion_generator()
15906 zSql = sqlite3_mprintf("SELECT DISTINCT candidate COLLATE nocase" in linenoise_completion()
16301 zQuery = sqlite3_mprintf("SELECT * FROM \"%w\"", zTable); in tryToCloneData()
16372 zQuery = sqlite3_mprintf("SELECT * FROM \"%w\" ORDER BY rowid DESC;", in tryToCloneData()
16408 zQuery = sqlite3_mprintf("SELECT name, sql FROM sqlite_schema" in tryToCloneSchema()
16435 zQuery = sqlite3_mprintf("SELECT name, sql FROM sqlite_schema" in tryToCloneSchema()
16517 zCmd = sqlite3_mprintf("%s %s", zXdgOpenCmd, p->zTempFile); in output_reset()
16639 zSchemaTab = sqlite3_mprintf("main.sqlite_schema"); in shell_dbinfo_command()
16641 zSchemaTab = sqlite3_mprintf("%s", "sqlite_temp_schema"); in shell_dbinfo_command()
16643 zSchemaTab = sqlite3_mprintf("\"%w\".sqlite_schema", zDb); in shell_dbinfo_command()
16646 char *zSql = sqlite3_mprintf(aQuery[i].zSql, zSchemaTab); in shell_dbinfo_command()
16827 p->zTempFile = sqlite3_mprintf("%s/temp%llx.%s", zTemp, r, zSuffix); in newTempFile()
16829 p->zTempFile = sqlite3_mprintf("%z.%s", p->zTempFile, zSuffix); in newTempFile()
16883 char *z = sqlite3_mprintf(" COLLATE %s", zParentSeq); in shellFkeyCollateClause()
17036 zPrev = sqlite3_mprintf("%s", zParent); in lintFkeyIndexes()
17497 zWhere = sqlite3_mprintf("1"); in arWhereClause()
17503 zWhere = sqlite3_mprintf( in arWhereClause()
17574 zSql = sqlite3_mprintf("DELETE FROM %s WHERE %s;", in arRemoveCommand()
17630 zDir = sqlite3_mprintf("%s/", pAr->zDir); in arExtractCommand()
17632 zDir = sqlite3_mprintf(""); in arExtractCommand()
17765 zSql = sqlite3_mprintf( in arCreateOrUpdateCommand()
17784 zExists = sqlite3_mprintf( in arCreateOrUpdateCommand()
17791 zExists = sqlite3_mprintf(""); in arCreateOrUpdateCommand()
17795 char *zSql2 = sqlite3_mprintf(zInsertFmt[pAr->bZip], zTab, in arCreateOrUpdateCommand()
17807 zSql = sqlite3_mprintf("DROP TABLE %s", zTemp); in arCreateOrUpdateCommand()
17842 cmd.zSrcTable = sqlite3_mprintf("zip"); in arDotCommand()
17844 cmd.zSrcTable = sqlite3_mprintf("zipfile(%Q)", cmd.zFile); in arDotCommand()
17884 cmd.zSrcTable = sqlite3_mprintf("sqlar"); in arDotCommand()
19024 char *zExpr = sqlite3_mprintf( in do_meta_command()
19034 zLike = sqlite3_mprintf("%z OR %z", zLike, zExpr); in do_meta_command()
19057 if( zLike==0 ) zLike = sqlite3_mprintf("true"); in do_meta_command()
19058 zSql = sqlite3_mprintf( in do_meta_command()
19068 zSql = sqlite3_mprintf( in do_meta_command()
19531 zSql = sqlite3_mprintf("SELECT * FROM \"%w\"", zTable); in do_meta_command()
19540 char *zCreate = sqlite3_mprintf("CREATE TABLE \"%w\"", zTable); in do_meta_command()
19543 zCreate = sqlite3_mprintf("%z%c\n \"%w\" TEXT", zCreate, cSep, sCtx.z); in do_meta_command()
19554 zCreate = sqlite3_mprintf("%z\n)", zCreate); in do_meta_command()
19691 zSql = sqlite3_mprintf( in do_meta_command()
19707 zSql = sqlite3_mprintf("PRAGMA index_xinfo='%q'", azArg[1]); in do_meta_command()
19727 zCollist = sqlite3_mprintf("\"%w\"", zCol); in do_meta_command()
19729 zCollist = sqlite3_mprintf("%z,\"%w\"", zCollist, zCol); in do_meta_command()
19740 zSql = sqlite3_mprintf( in do_meta_command()
20036 zNewFilename = sqlite3_mprintf("%s", z); in do_meta_command()
20113 zFile = sqlite3_mprintf("%s", z); in do_meta_command()
20115 while( i+1<nArg ) zFile = sqlite3_mprintf("%z %s", zFile, azArg[++i]); in do_meta_command()
20127 if( zFile==0 ) zFile = sqlite3_mprintf("stdout"); in do_meta_command()
20151 zFile = sqlite3_mprintf("%s", p->zTempFile); in do_meta_command()
20247 zSql = sqlite3_mprintf( in do_meta_command()
20257 zSql = sqlite3_mprintf( in do_meta_command()
20279 char *zSql = sqlite3_mprintf( in do_meta_command()
20499 new_argv[0] = sqlite3_mprintf( in do_meta_command()
20557 char *zQarg = sqlite3_mprintf("%Q", zName); in do_meta_command()
20722 pSession->azFilter[ii-1] = sqlite3_mprintf("%s", azCmd[ii]); in do_meta_command()
20793 pSession->zName = sqlite3_mprintf("%s", zName); in do_meta_command()
20889 char *zQuote = sqlite3_mprintf("%q", zSql); in do_meta_command()
21037 zSql = sqlite3_mprintf( in do_meta_command()
21043 zSql = sqlite3_mprintf( in do_meta_command()
21071 zCmd = sqlite3_mprintf(strchr(azArg[1],' ')==0?"%s":"\"%s\"", azArg[1]); in do_meta_command()
21073 zCmd = sqlite3_mprintf(strchr(azArg[i],' ')==0?"%z %s":"%z \"%s\"", in do_meta_command()
21216 azResult[nRow] = sqlite3_mprintf("%s", sqlite3_column_text(pStmt, 0)); in do_meta_command()
22117 zBuf = sqlite3_mprintf("%s/.sqliterc",home_dir); in process_sqliterc()