Lines Matching defs:zSchema
1990 ** of the view, virtual table, or table valued function zSchema.zName.
1994 const char *zSchema, /* Schema of the database holding the vtab */
2005 zSchema ? zSchema : "main", zName);
2010 if( zSchema ){
2011 cQuote = quoteChar(zSchema);
2012 if( cQuote && sqlite3_stricmp(zSchema,"temp")==0 ) cQuote = 0;
2013 appendText(&s, zSchema, cQuote);
2133 const char *zSchema = (const char*)sqlite3_value_text(apVal[1]);
2143 if( zSchema ){
2144 char cQuote = quoteChar(zSchema);
2145 if( cQuote && sqlite3_stricmp(zSchema,"temp")!=0 ){
2146 z = sqlite3_mprintf("%.*s \"%w\".%s", n+7, zIn, zSchema, zIn+n+8);
2148 z = sqlite3_mprintf("%.*s %s.%s", n+7, zIn, zSchema, zIn+n+8);
2153 && (zFake = shellFakeSchema(db, zSchema, zName))!=0
16225 ** Return true if nul-terminated string zSchema ends in "()". Or false
16228 static int dbdataIsFunction(const char *zSchema){
16229 size_t n = strlen(zSchema);
16230 if( n>2 && zSchema[n-2]=='(' && zSchema[n-1]==')' ){
16237 ** Determine the size in pages of database zSchema (where zSchema is
16242 static int dbdataDbsize(DbdataCursor *pCsr, const char *zSchema){
16249 if( (nFunc = dbdataIsFunction(zSchema))>0 ){
16250 zSql = sqlite3_mprintf("SELECT %.*s(0)", nFunc, zSchema);
16252 zSql = sqlite3_mprintf("PRAGMA %Q.page_count", zSchema);
16295 const char *zSchema = "main";
16302 zSchema = (const char*)sqlite3_value_text(argv[0]);
16303 if( zSchema==0 ) zSchema = "";
16309 rc = dbdataDbsize(pCsr, zSchema);
16317 }else if( (nFunc = dbdataIsFunction(zSchema))>0 ){
16318 char *zSql = sqlite3_mprintf("SELECT %.*s(?2)", nFunc, zSchema);
16333 rc = sqlite3_bind_text(pCsr->pStmt, 1, zSchema, -1, SQLITE_TRANSIENT);
26401 const char *zSchema = (const char *)sqlite3_column_text(pStmt,1);
26403 if( zSchema==0 || zFile==0 ) continue;
26406 azName[nName*2] = strdup(zSchema);
26700 const char *zSchema = 0;
26709 zSchema = azArg[2];
26755 sqlite3_file_control(p->db, zSchema, SQLITE_FCNTL_SIZE_LIMIT, &iRes);
26764 sqlite3_file_control(p->db, zSchema, filectrl, &x);
26773 sqlite3_file_control(p->db, zSchema, filectrl, &x);
26782 sqlite3_file_control(p->db, zSchema, filectrl, &x);
26790 sqlite3_file_control(p->db, zSchema, filectrl, &z);
26802 sqlite3_file_control(p->db, zSchema, filectrl, &x);
26805 sqlite3_file_control(p->db, zSchema, filectrl, &x);
26895 char *zSchema = 0; /* Schema of zTable */
26935 zSchema = azArg[++i];
27038 if( sqlite3_table_column_metadata(p->db, zSchema, zTable,0,0,0,0,0,0) ){
27044 zSchema ? zSchema : "main", zTable);
27082 zTable, zSchema);
27107 + (zSchema ? strlen(zSchema)*2 + 2: 0) /* Quoted schema name */
27115 if( zSchema ){
27117 zSchema, zTable);