Lines Matching defs:pName
9840 const Token *pName; /* Name of the container - used for error messages */
52964 Mem *pName;
58053 Mem *pName;
58057 u.cj.pName = &aMem[pOp->p1];
58059 REGISTER_TRACE(pOp->p1, u.cj.pName);
58060 assert( u.cj.pName->flags & MEM_Str );
58061 rc = u.cj.pVtab->pModule->xRename(u.cj.pVtab, u.cj.pName->z);
61524 ** pList might be NULL following an OOM error. But pName should never be
61531 Token *pName, /* Name to be added */
61540 pItem->zName = sqlite3DbStrNDup(pParse->db, pName->z, pName->n);
64620 Token *pName /* The new table name. */
64625 char *zName = 0; /* NULL-terminated version of pName */
64645 zName = sqlite3NameFromToken(db, pName);
65728 static int resolveAttachExpr(NameContext *pName, Expr *pExpr)
65733 rc = sqlite3ResolveExprNames(pName, pExpr);
65735 sqlite3ErrorMsg(pName->pParse, "invalid name: \"%s\"", pExpr->u.zToken);
66101 const Token *pName /* Name of the view, trigger, or index */
66111 pFix->pName = pName;
66145 pFix->zType, pFix->pName, pItem->zDatabase);
67057 SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3 *db, Token *pName){
67059 if( pName ){
67060 zName = sqlite3DbStrNDup(db, (char*)pName->z, pName->n);
67104 ** The token *pName contains the name of a database (either "main" or
67109 SQLITE_PRIVATE int sqlite3FindDb(sqlite3 *db, Token *pName){
67112 zName = sqlite3NameFromToken(db, pName);
67211 Token *pName; /* Unqualified name of the table to create */
67225 ** The call below sets the pName pointer to point at the token (pName1 or
67230 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
67239 pParse->sNameToken = *pName;
67240 zName = sqlite3NameFromToken(db, pName);
67287 sqlite3ErrorMsg(pParse, "table %T already exists", pName);
67414 SQLITE_PRIVATE void sqlite3AddColumn(Parse *pParse, Token *pName){
67427 z = sqlite3NameFromToken(db, pName);
68144 Token *pName;
68161 sqlite3TwoPartName(pParse, pName1, pName2, &pName);
68163 if( sqlite3FixInit(&sFix, pParse, iDb, "view", pName)
68447 ** pName is the name of the table to be dropped.
68449 SQLITE_PRIVATE void sqlite3DropTable(Parse *pParse, SrcList *pName, int isView, int noErr){
68459 assert( pName->nSrc==1 );
68462 pNamepName->a[0].zDatabase);
68545 sqlite3FkDropTable(pParse, pName, pTab);
68607 sqlite3SrcListDelete(db, pName);
68875 Token *pName = 0; /* Unqualified name of the index to create */
68900 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
68916 if( sqlite3FixInit(&sFix, pParse, iDb, "index", pName) &&
68928 assert( pName==0 );
68964 ** If pName==0 it means that we are
68968 if( pName ){
68969 zName = sqlite3NameFromToken(db, pName);
69067 pIndex->autoIndex = (u8)(pName==0);
69248 pEnd->z - pName->z + 1,
69249 pName->z);
69354 SQLITE_PRIVATE void sqlite3DropIndex(Parse *pParse, SrcList *pName, int ifExists){
69364 assert( pName->nSrc==1 );
69368 pIndex = sqlite3FindIndex(db, pName->a[0].zName, pName->a[0].zDatabase);
69371 sqlite3ErrorMsg(pParse, "no such index: %S", pName, 0);
69419 sqlite3SrcListDelete(db, pName);
69863 SQLITE_PRIVATE void sqlite3Savepoint(Parse *pParse, int op, Token *pName){
69864 char *zName = sqlite3NameFromToken(pParse->db, pName);
73424 SQLITE_PRIVATE void sqlite3FkDropTable(Parse *pParse, SrcList *pName, Table *pTab){
73447 sqlite3DeleteFrom(pParse, sqlite3SrcListDup(db, pName, 0), 0);
83820 Token *pName; /* The unqualified db name */
83835 pName = pName1;
83838 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
83860 if( sqlite3FixInit(&sFix, pParse, iDb, "trigger", pName) &&
83887 zName = sqlite3NameFromToken(db, pName);
83894 sqlite3ErrorMsg(pParse, "trigger %T already exists", pName);
84078 Token *pName /* The target name */
84082 pTriggerStep = sqlite3DbMallocZero(db, sizeof(TriggerStep) + pName->n);
84085 memcpy(z, pName->z, pName->n);
84087 pTriggerStep->target.n = pName->n;
84195 SQLITE_PRIVATE void sqlite3DropTrigger(Parse *pParse, SrcList *pName, int noErr){
84208 assert( pName->nSrc==1 );
84209 zDb = pName->a[0].zDatabase;
84210 zName = pName->a[0].zName;
84220 sqlite3ErrorMsg(pParse, "no such trigger: %S", pName, 0);
84227 sqlite3SrcListDelete(db, pName);