diff options
author | drh <drh@noemail.net> | 2006-08-24 15:18:25 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2006-08-24 15:18:25 +0000 |
commit | b8b14219638c2c81dc8c528eed91fb03fda7c72a (patch) | |
tree | 170ae85d3a99faeceae12e7acfb7042af3df9e4a /src | |
parent | 5169bbc6a382bf16a2dbbba183c67af4c4db8e64 (diff) | |
download | sqlite-b8b14219638c2c81dc8c528eed91fb03fda7c72a.tar.gz sqlite-b8b14219638c2c81dc8c528eed91fb03fda7c72a.zip |
Documentation updates for the new SQLITE_FUNCTION authorization. (CVS 3366)
FossilOrigin-Name: e029637e54e190c89206725a99e1ee7db6c23804
Diffstat (limited to 'src')
-rw-r--r-- | src/expr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/expr.c b/src/expr.c index 32fb543cc..54b6488e4 100644 --- a/src/expr.c +++ b/src/expr.c @@ -12,7 +12,7 @@ ** This file contains routines used for analyzing expressions and ** for generating VDBE code that evaluates expressions in SQLite. ** -** $Id: expr.c,v 1.267 2006/08/24 14:59:46 drh Exp $ +** $Id: expr.c,v 1.268 2006/08/24 15:18:25 drh Exp $ */ #include "sqliteInt.h" #include <ctype.h> @@ -1180,6 +1180,7 @@ static int nameResolverStep(void *pArg, Expr *pExpr){ }else{ is_agg = pDef->xFunc==0; } +#ifndef SQLITE_OMIT_AUTHORIZER if( pDef ){ auth = sqlite3AuthCheck(pParse, SQLITE_FUNCTION, 0, pDef->zName, 0); if( auth!=SQLITE_OK ){ @@ -1192,6 +1193,7 @@ static int nameResolverStep(void *pArg, Expr *pExpr){ return 1; } } +#endif if( is_agg && !pNC->allowAgg ){ sqlite3ErrorMsg(pParse, "misuse of aggregate function %.*s()", nId,zId); pNC->nErr++; |