Lines Matching defs:pName
10503 const Token *pName; /* Name of the container - used for error messages */
60965 Mem *pName;
66239 Mem *pName;
66243 u.ck.pName = &aMem[pOp->p1];
66245 assert( memIsValid(u.ck.pName) );
66246 REGISTER_TRACE(pOp->p1, u.ck.pName);
66247 assert( u.ck.pName->flags & MEM_Str );
66248 rc = u.ck.pVtab->pModule->xRename(u.ck.pVtab, u.ck.pName->z);
69825 ** pList might be NULL following an OOM error. But pName should never be
69832 Token *pName, /* Name to be added */
69841 pItem->zName = sqlite3DbStrNDup(pParse->db, pName->z, pName->n);
72942 Token *pName /* The new table name. */
72947 char *zName = 0; /* NULL-terminated version of pName */
72970 zName = sqlite3NameFromToken(db, pName);
74100 static int resolveAttachExpr(NameContext *pName, Expr *pExpr)
74105 rc = sqlite3ResolveExprNames(pName, pExpr);
74107 sqlite3ErrorMsg(pName->pParse, "invalid name: \"%s\"", pExpr->u.zToken);
74475 const Token *pName /* Name of the view, trigger, or index */
74485 pFix->pName = pName;
74519 pFix->zType, pFix->pName, pItem->zDatabase);
75411 SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3 *db, Token *pName){
75413 if( pName ){
75414 zName = sqlite3DbStrNDup(db, (char*)pName->z, pName->n);
75458 ** The token *pName contains the name of a database (either "main" or
75463 SQLITE_PRIVATE int sqlite3FindDb(sqlite3 *db, Token *pName){
75466 zName = sqlite3NameFromToken(db, pName);
75565 Token *pName; /* Unqualified name of the table to create */
75579 ** The call below sets the pName pointer to point at the token (pName1 or
75584 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
75594 pParse->sNameToken = *pName;
75595 zName = sqlite3NameFromToken(db, pName);
75643 sqlite3ErrorMsg(pParse, "table %T already exists", pName);
75770 SQLITE_PRIVATE void sqlite3AddColumn(Parse *pParse, Token *pName){
75783 z = sqlite3NameFromToken(db, pName);
76500 Token *pName;
76515 sqlite3TwoPartName(pParse, pName1, pName2, &pName);
76517 if( sqlite3FixInit(&sFix, pParse, iDb, "view", pName)
76803 ** pName is the name of the table to be dropped.
76805 SQLITE_PRIVATE void sqlite3DropTable(Parse *pParse, SrcList *pName, int isView, int noErr){
76815 assert( pName->nSrc==1 );
76818 pName->a[0].zName, pName->a[0].zDatabase);
76901 sqlite3FkDropTable(pParse, pName, pTab);
76963 sqlite3SrcListDelete(db, pName);
77231 Token *pName = 0; /* Unqualified name of the index to create */
77256 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
77272 if( sqlite3FixInit(&sFix, pParse, iDb, "index", pName) &&
77284 assert( pName==0 );
77320 ** If pName==0 it means that we are
77324 if( pName ){
77325 zName = sqlite3NameFromToken(db, pName);
77423 pIndex->autoIndex = (u8)(pName==0);
77605 pEnd->z - pName->z + 1,
77606 pName->z);
77712 SQLITE_PRIVATE void sqlite3DropIndex(Parse *pParse, SrcList *pName, int ifExists){
77722 assert( pName->nSrc==1 );
77726 pIndex = sqlite3FindIndex(db, pName->a[0].zName, pName->a[0].zDatabase);
77729 sqlite3ErrorMsg(pParse, "no such index: %S", pName, 0);
77777 sqlite3SrcListDelete(db, pName);
78221 SQLITE_PRIVATE void sqlite3Savepoint(Parse *pParse, int op, Token *pName){
78222 char *zName = sqlite3NameFromToken(pParse->db, pName);
81858 SQLITE_PRIVATE void sqlite3FkDropTable(Parse *pParse, SrcList *pName, Table *pTab){
81881 sqlite3DeleteFrom(pParse, sqlite3SrcListDup(db, pName, 0), 0);
92570 Token *pName; /* The unqualified db name */
92585 pName = pName1;
92588 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
92611 if( sqlite3FixInit(&sFix, pParse, iDb, "trigger", pName) &&
92638 zName = sqlite3NameFromToken(db, pName);
92645 sqlite3ErrorMsg(pParse, "trigger %T already exists", pName);
92829 Token *pName /* The target name */
92833 pTriggerStep = sqlite3DbMallocZero(db, sizeof(TriggerStep) + pName->n);
92836 memcpy(z, pName->z, pName->n);
92838 pTriggerStep->target.n = pName->n;
92946 SQLITE_PRIVATE void sqlite3DropTrigger(Parse *pParse, SrcList *pName, int noErr){
92959 assert( pName->nSrc==1 );
92960 zDb = pName->a[0].zDatabase;
92961 zName = pName->a[0].zName;
92971 sqlite3ErrorMsg(pParse, "no such trigger: %S", pName, 0);
92979 sqlite3SrcListDelete(db, pName);