Lines Matching refs:pName
12741 const Token *pName; /* Name of the container - used for error messages */ member
77114 Mem *pName;
77117 pName = &aMem[pOp->p1];
77119 assert( memIsValid(pName) );
77121 REGISTER_TRACE(pOp->p1, pName);
77122 assert( pName->flags & MEM_Str );
77123 testcase( pName->enc==SQLITE_UTF8 );
77124 testcase( pName->enc==SQLITE_UTF16BE );
77125 testcase( pName->enc==SQLITE_UTF16LE );
77126 rc = sqlite3VdbeChangeEncoding(pName, SQLITE_UTF8);
77128 rc = pVtab->pModule->xRename(pVtab, pName->z);
83975 Token *pName, /* Name to be added */
83984 pItem->zName = sqlite3DbStrNDup(pParse->db, pName->z, pName->n);
87625 Token *pName /* The new table name. */
87653 zName = sqlite3NameFromToken(db, pName);
89990 static int resolveAttachExpr(NameContext *pName, Expr *pExpr)
89995 rc = sqlite3ResolveExprNames(pName, pExpr);
90387 const Token *pName /* Name of the view, trigger, or index */
90397 pFix->pName = pName;
90430 pFix->zType, pFix->pName, pItem->zDatabase);
91481 SQLITE_PRIVATE char *sqlite3NameFromToken(sqlite3 *db, Token *pName){
91483 if( pName ){
91484 zName = sqlite3DbStrNDup(db, (char*)pName->z, pName->n);
91532 SQLITE_PRIVATE int sqlite3FindDb(sqlite3 *db, Token *pName){
91535 zName = sqlite3NameFromToken(db, pName);
91653 Token *pName; /* Unqualified name of the table to create */
91672 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
91682 pParse->sNameToken = *pName;
91683 zName = sqlite3NameFromToken(db, pName);
91731 sqlite3ErrorMsg(pParse, "table %T already exists", pName);
91862 SQLITE_PRIVATE void sqlite3AddColumn(Parse *pParse, Token *pName){
91875 z = sqlite3NameFromToken(db, pName);
92842 Token *pName = 0;
92857 sqlite3TwoPartName(pParse, pName1, pName2, &pName);
92859 sqlite3FixInit(&sFix, pParse, iDb, "view", pName);
93246 SQLITE_PRIVATE void sqlite3DropTable(Parse *pParse, SrcList *pName, int isView, int noErr){
93256 assert( pName->nSrc==1 );
93259 pTab = sqlite3LocateTableItem(pParse, isView, &pName->a[0]);
93263 if( noErr ) sqlite3CodeVerifyNamedSchema(pParse, pName->a[0].zDatabase);
93337 sqlite3FkDropTable(pParse, pName, pTab);
93342 sqlite3SrcListDelete(db, pName);
93657 Token *pName = 0; /* Unqualified name of the index to create */
93682 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
93684 assert( pName && pName->z );
93699 sqlite3FixInit(&sFix, pParse, iDb, "index", pName);
93716 assert( pName==0 );
93761 if( pName ){
93762 zName = sqlite3NameFromToken(db, pName);
93764 assert( pName->z!=0 );
93850 pIndex->idxType = pName ? SQLITE_IDXTYPE_APPDEF : SQLITE_IDXTYPE_UNIQUE;
94047 int n = (int)(pParse->sLastToken.z - pName->z) + pParse->sLastToken.n;
94048 if( pName->z[n-1]==';' ) n--;
94051 onError==OE_None ? "" : " UNIQUE", n, pName->z);
94161 SQLITE_PRIVATE void sqlite3DropIndex(Parse *pParse, SrcList *pName, int ifExists){
94171 assert( pName->nSrc==1 );
94175 pIndex = sqlite3FindIndex(db, pName->a[0].zName, pName->a[0].zDatabase);
94178 sqlite3ErrorMsg(pParse, "no such index: %S", pName, 0);
94180 sqlite3CodeVerifyNamedSchema(pParse, pName->a[0].zDatabase);
94222 sqlite3SrcListDelete(db, pName);
94655 SQLITE_PRIVATE void sqlite3Savepoint(Parse *pParse, int op, Token *pName){
94656 char *zName = sqlite3NameFromToken(pParse->db, pName);
95043 Token *pName, /* Name of the common-table */
95053 zName = sqlite3NameFromToken(pParse->db, pName);
98928 SQLITE_PRIVATE void sqlite3FkDropTable(Parse *pParse, SrcList *pName, Table *pTab){
98951 sqlite3DeleteFrom(pParse, sqlite3SrcListDup(db, pName, 0), 0);
112374 Token *pName; /* The unqualified db name */
112389 pName = pName1;
112392 iDb = sqlite3TwoPartName(pParse, pName1, pName2, &pName);
112428 sqlite3FixInit(&sFix, pParse, iDb, "trigger", pName);
112455 zName = sqlite3NameFromToken(db, pName);
112462 sqlite3ErrorMsg(pParse, "trigger %T already exists", pName);
112648 Token *pName /* The target name */
112652 pTriggerStep = sqlite3DbMallocZero(db, sizeof(TriggerStep) + pName->n + 1);
112655 memcpy(z, pName->z, pName->n);
112761 SQLITE_PRIVATE void sqlite3DropTrigger(Parse *pParse, SrcList *pName, int noErr){
112773 assert( pName->nSrc==1 );
112774 zDb = pName->a[0].zDatabase;
112775 zName = pName->a[0].zName;
112786 sqlite3ErrorMsg(pParse, "no such trigger: %S", pName, 0);
112796 sqlite3SrcListDelete(db, pName);