Lines Matching refs:zSchema
1546 const char *zSchema, /* Schema of the database holding the vtab */ in shellFakeSchema() argument
1557 zSchema ? zSchema : "main", zName); in shellFakeSchema()
1562 if( zSchema ){ in shellFakeSchema()
1563 cQuote = quoteChar(zSchema); in shellFakeSchema()
1564 if( cQuote && sqlite3_stricmp(zSchema,"temp")==0 ) cQuote = 0; in shellFakeSchema()
1565 appendText(&s, zSchema, cQuote); in shellFakeSchema()
1661 const char *zSchema = (const char*)sqlite3_value_text(apVal[1]); in shellAddSchemaName() local
1671 if( zSchema ){ in shellAddSchemaName()
1672 char cQuote = quoteChar(zSchema); in shellAddSchemaName()
1673 if( cQuote && sqlite3_stricmp(zSchema,"temp")!=0 ){ in shellAddSchemaName()
1674 z = sqlite3_mprintf("%.*s \"%w\".%s", n+7, zIn, zSchema, zIn+n+8); in shellAddSchemaName()
1676 z = sqlite3_mprintf("%.*s %s.%s", n+7, zIn, zSchema, zIn+n+8); in shellAddSchemaName()
1681 && (zFake = shellFakeSchema(db, zSchema, zName))!=0 in shellAddSchemaName()
18462 static int dbdataIsFunction(const char *zSchema){ in dbdataIsFunction() argument
18463 size_t n = strlen(zSchema); in dbdataIsFunction()
18464 if( n>2 && zSchema[n-2]=='(' && zSchema[n-1]==')' ){ in dbdataIsFunction()
18476 static int dbdataDbsize(DbdataCursor *pCsr, const char *zSchema){ in dbdataDbsize() argument
18483 if( (nFunc = dbdataIsFunction(zSchema))>0 ){ in dbdataDbsize()
18484 zSql = sqlite3_mprintf("SELECT %.*s(0)", nFunc, zSchema); in dbdataDbsize()
18486 zSql = sqlite3_mprintf("PRAGMA %Q.page_count", zSchema); in dbdataDbsize()
18529 const char *zSchema = "main"; in dbdataFilter() local
18536 zSchema = (const char*)sqlite3_value_text(argv[0]); in dbdataFilter()
18537 if( zSchema==0 ) zSchema = ""; in dbdataFilter()
18543 rc = dbdataDbsize(pCsr, zSchema); in dbdataFilter()
18551 }else if( (nFunc = dbdataIsFunction(zSchema))>0 ){ in dbdataFilter()
18552 char *zSql = sqlite3_mprintf("SELECT %.*s(?2)", nFunc, zSchema); in dbdataFilter()
18567 rc = sqlite3_bind_text(pCsr->pStmt, 1, zSchema, -1, SQLITE_TRANSIENT); in dbdataFilter()
29109 const char *zSchema = (const char *)sqlite3_column_text(pStmt,1); in do_meta_command() local
29111 if( zSchema==0 || zFile==0 ) continue; in do_meta_command()
29114 azName[nName*2] = strdup(zSchema); in do_meta_command()
29418 const char *zSchema = 0; in do_meta_command() local
29427 zSchema = azArg[2]; in do_meta_command()
29474 sqlite3_file_control(p->db, zSchema, SQLITE_FCNTL_SIZE_LIMIT, &iRes); in do_meta_command()
29483 sqlite3_file_control(p->db, zSchema, filectrl, &x); in do_meta_command()
29492 sqlite3_file_control(p->db, zSchema, filectrl, &x); in do_meta_command()
29501 sqlite3_file_control(p->db, zSchema, filectrl, &x); in do_meta_command()
29509 sqlite3_file_control(p->db, zSchema, filectrl, &z); in do_meta_command()
29521 sqlite3_file_control(p->db, zSchema, filectrl, &x); in do_meta_command()
29524 sqlite3_file_control(p->db, zSchema, filectrl, &x); in do_meta_command()
29615 char *zSchema = 0; /* Schema of zTable */ in do_meta_command() local
29655 zSchema = azArg[++i]; in do_meta_command()
29758 if( sqlite3_table_column_metadata(p->db, zSchema, zTable,0,0,0,0,0,0) in do_meta_command()
29761 zSchema ? zSchema : "main", zTable) in do_meta_command()
29768 zSchema ? zSchema : "main", zTable); in do_meta_command()
29810 zTable, zSchema); in do_meta_command()
29835 + (zSchema ? strlen(zSchema)*2 + 2: 0) /* Quoted schema name */ in do_meta_command()
29843 if( zSchema ){ in do_meta_command()
29845 zSchema, zTable); in do_meta_command()