Lines Matching defs:pName
13978 const Token *pName; /* Name of the container - used for error messages */
81028 Mem *pName;
81031 pName = &aMem[pOp->p1];
81033 assert( memIsValid(pName) );
81035 REGISTER_TRACE(pOp->p1, pName);
81036 assert( pName->flags & MEM_Str );
81037 testcase( pName->enc==SQLITE_UTF8 );
81038 testcase( pName->enc==SQLITE_UTF16BE );
81039 testcase( pName->enc==SQLITE_UTF16LE );
81040 rc = sqlite3VdbeChangeEncoding(pName, SQLITE_UTF8);
81042 rc = pVtab->pModule->xRename(pVtab, pName->z);
87852 ** pList might be NULL following an OOM error. But pName should never be
87859 Token *pName, /* Name to be added */
87868 pItem->zName = sqlite3DbStrNDup(pParse->db, pName->z, pName->n);
91327 Token *pName /* The new table name. */
91332 char *zName = 0; /* NULL-terminated version of pName */
91355 zName = sqlite3NameFromToken(db, pName);
93665 static int resolveAttachExpr(NameContext *pName, Expr *pExpr)
93670 rc = sqlite3ResolveExprNames(pName, pExpr);
94059 const Token *pName /* Name of the view, trigger, or index */
94069 pFix->pName = pName;
94102 pFix->zType, pFix->pName, pItem->zDatabase);
95154 SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3 *db, Token *pName){
95156 if( pName ){
95157 zName = sqlite3DbStrNDup(db, (char*)pName->z, pName->n);
95196 ** The token *pName contains the name of a database (either "main" or
95201 SQLITE_PRIVATE int sqlite3FindDb(sqlite3 *db, Token *pName){
95204 zName = sqlite3NameFromToken(db, pName);
95323 Token *pName; /* Unqualified name of the table to create */
95329 pName = pName1;
95332 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
95341 zName = sqlite3NameFromToken(db, pName);
95343 pParse->sNameToken = *pName;
95385 sqlite3ErrorMsg(pParse, "table %T already exists", pName);
95517 SQLITE_PRIVATE void sqlite3AddColumn(Parse *pParse, Token *pName, Token *pType){
95531 z = sqlite3DbMallocRaw(db, pName->n + pType->n + 2);
95533 memcpy(z, pName->z, pName->n);
95534 z[pName->n] = 0;
96547 Token *pName = 0;
96558 sqlite3TwoPartName(pParse, pName1, pName2, &pName);
96560 sqlite3FixInit(&sFix, pParse, iDb, "view", pName);
96961 ** pName is the name of the table to be dropped.
96963 SQLITE_PRIVATE void sqlite3DropTable(Parse *pParse, SrcList *pName, int isView, int noErr){
96973 assert( pName->nSrc==1 );
96976 pTab = sqlite3LocateTableItem(pParse, isView, &pName->a[0]);
96980 if( noErr ) sqlite3CodeVerifyNamedSchema(pParse, pName->a[0].zDatabase);
97054 sqlite3FkDropTable(pParse, pName, pTab);
97059 sqlite3SrcListDelete(db, pName);
97374 Token *pName = 0; /* Unqualified name of the index to create */
97398 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
97400 assert( pName && pName->z );
97415 sqlite3FixInit(&sFix, pParse, iDb, "index", pName);
97432 assert( pName==0 );
97473 ** If pName==0 it means that we are
97477 if( pName ){
97478 zName = sqlite3NameFromToken(db, pName);
97480 assert( pName->z!=0 );
97570 pIndex->idxType = pName ? SQLITE_IDXTYPE_APPDEF : SQLITE_IDXTYPE_UNIQUE;
97812 int n = (int)(pParse->sLastToken.z - pName->z) + pParse->sLastToken.n;
97813 if( pName->z[n-1]==';' ) n--;
97816 onError==OE_None ? "" : " UNIQUE", n, pName->z);
97928 SQLITE_PRIVATE void sqlite3DropIndex(Parse *pParse, SrcList *pName, int ifExists){
97938 assert( pName->nSrc==1 );
97942 pIndex = sqlite3FindIndex(db, pName->a[0].zName, pName->a[0].zDatabase);
97945 sqlite3ErrorMsg(pParse, "no such index: %S", pName, 0);
97947 sqlite3CodeVerifyNamedSchema(pParse, pName->a[0].zDatabase);
97989 sqlite3SrcListDelete(db, pName);
98444 SQLITE_PRIVATE void sqlite3Savepoint(Parse *pParse, int op, Token *pName){
98445 char *zName = sqlite3NameFromToken(pParse->db, pName);
98835 Token *pName, /* Name of the common-table */
98845 zName = sqlite3NameFromToken(pParse->db, pName);
102808 SQLITE_PRIVATE void sqlite3FkDropTable(Parse *pParse, SrcList *pName, Table *pTab){
102831 sqlite3DeleteFrom(pParse, sqlite3SrcListDup(db, pName, 0), 0);
116476 Token *pName; /* The unqualified db name */
116491 pName = pName1;
116494 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
116530 sqlite3FixInit(&sFix, pParse, iDb, "trigger", pName);
116557 zName = sqlite3NameFromToken(db, pName);
116564 sqlite3ErrorMsg(pParse, "trigger %T already exists", pName);
116749 Token *pName /* The target name */
116753 pTriggerStep = sqlite3DbMallocZero(db, sizeof(TriggerStep) + pName->n + 1);
116756 memcpy(z, pName->z, pName->n);
116862 SQLITE_PRIVATE void sqlite3DropTrigger(Parse *pParse, SrcList *pName, int noErr){
116874 assert( pName->nSrc==1 );
116875 zDb = pName->a[0].zDatabase;
116876 zName = pName->a[0].zName;
116887 sqlite3ErrorMsg(pParse, "no such trigger: %S", pName, 0);
116897 sqlite3SrcListDelete(db, pName);