Lines Matching refs:pParse

90 static void sqliteAuthBadReturnCode(Parse *pParse){  in sqliteAuthBadReturnCode()  argument
91 sqlite3ErrorMsg(pParse, "authorizer malfunction"); in sqliteAuthBadReturnCode()
92 pParse->rc = SQLITE_ERROR; in sqliteAuthBadReturnCode()
105 Parse *pParse, /* The parser context */ in sqlite3AuthReadCol() argument
110 sqlite3 *db = pParse->db; /* Database handle */ in sqlite3AuthReadCol()
115 rc = db->xAuth(db->pAuthArg, SQLITE_READ, zTab,zCol,zDb,pParse->zAuthContext in sqlite3AuthReadCol()
123 sqlite3ErrorMsg(pParse, "access to %z is prohibited", z); in sqlite3AuthReadCol()
124 pParse->rc = SQLITE_AUTH; in sqlite3AuthReadCol()
126 sqliteAuthBadReturnCode(pParse); in sqlite3AuthReadCol()
141 Parse *pParse, /* The parser context */ in sqlite3AuthRead() argument
154 assert( pParse->db->xAuth!=0 ); in sqlite3AuthRead()
155 iDb = sqlite3SchemaToIndex(pParse->db, pSchema); in sqlite3AuthRead()
163 pTab = pParse->pTriggerTab; in sqlite3AuthRead()
185 assert( iDb>=0 && iDb<pParse->db->nDb ); in sqlite3AuthRead()
186 if( SQLITE_IGNORE==sqlite3AuthReadCol(pParse, pTab->zName, zCol, iDb) ){ in sqlite3AuthRead()
198 Parse *pParse, in sqlite3AuthCheck() argument
204 sqlite3 *db = pParse->db; in sqlite3AuthCheck()
224 testcase( pParse->zAuthContext==0 ); in sqlite3AuthCheck()
226 rc = db->xAuth(db->pAuthArg, code, zArg1, zArg2, zArg3, pParse->zAuthContext in sqlite3AuthCheck()
232 sqlite3ErrorMsg(pParse, "not authorized"); in sqlite3AuthCheck()
233 pParse->rc = SQLITE_AUTH; in sqlite3AuthCheck()
236 sqliteAuthBadReturnCode(pParse); in sqlite3AuthCheck()
247 Parse *pParse, in sqlite3AuthContextPush() argument
251 assert( pParse ); in sqlite3AuthContextPush()
252 pContext->pParse = pParse; in sqlite3AuthContextPush()
253 pContext->zAuthContext = pParse->zAuthContext; in sqlite3AuthContextPush()
254 pParse->zAuthContext = zContext; in sqlite3AuthContextPush()
262 if( pContext->pParse ){ in sqlite3AuthContextPop()
263 pContext->pParse->zAuthContext = pContext->zAuthContext; in sqlite3AuthContextPop()
264 pContext->pParse = 0; in sqlite3AuthContextPop()