aboutsummaryrefslogtreecommitdiff
path: root/src/auth.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2018-06-04 08:28:18 +0000
committerdan <dan@noemail.net>2018-06-04 08:28:18 +0000
commit2b1287cf4443e040662a16667bb024f948e51c17 (patch)
tree10151f634a4b704038fdabb24a6b813990d61cb8 /src/auth.c
parentf1abe3680e04cc0f5c9eed7a9e6b47093a490beb (diff)
parenteb7df46e3203bb1fe1cfbd1c42c3af1a26a6ce6d (diff)
downloadsqlite-2b1287cf4443e040662a16667bb024f948e51c17.tar.gz
sqlite-2b1287cf4443e040662a16667bb024f948e51c17.zip
Merge latest trunk changes into this branch.
FossilOrigin-Name: 83d6416a868fac81a78c9507185a48d00920e4322276245e285946f760915f4a
Diffstat (limited to 'src/auth.c')
-rw-r--r--src/auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/auth.c b/src/auth.c
index 7d6f851d8..03e4cf9f5 100644
--- a/src/auth.c
+++ b/src/auth.c
@@ -150,6 +150,7 @@ void sqlite3AuthRead(
int iDb; /* The index of the database the expression refers to */
int iCol; /* Index of column in table */
+ assert( pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER );
if( db->xAuth==0 ) return;
iDb = sqlite3SchemaToIndex(pParse->db, pSchema);
if( iDb<0 ){
@@ -158,7 +159,6 @@ void sqlite3AuthRead(
return;
}
- assert( pExpr->op==TK_COLUMN || pExpr->op==TK_TRIGGER );
if( pExpr->op==TK_TRIGGER ){
pTab = pParse->pTriggerTab;
}else{