diff options
author | drh <drh@noemail.net> | 2014-09-25 13:17:30 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2014-09-25 13:17:30 +0000 |
commit | a15cc47f81fc9fe637166e8ea475e8d81557e0c7 (patch) | |
tree | 34601866d2243a9b9a082fa7007313081be6b589 /src/func.c | |
parent | 2c4dc635a198787e14f2548ddd04d9fade2ab278 (diff) | |
download | sqlite-a15cc47f81fc9fe637166e8ea475e8d81557e0c7.tar.gz sqlite-a15cc47f81fc9fe637166e8ea475e8d81557e0c7.zip |
Simplifications to the SQL function and aggregate calling procedures.
FossilOrigin-Name: 3467049a1705b49905ea88a5c6becb6fe318f2fa
Diffstat (limited to 'src/func.c')
-rw-r--r-- | src/func.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/func.c b/src/func.c index 5b7056b40..cf556e243 100644 --- a/src/func.c +++ b/src/func.c @@ -22,7 +22,10 @@ ** Return the collating function associated with a function. */ static CollSeq *sqlite3GetFuncCollSeq(sqlite3_context *context){ - return context->pColl; + VdbeOp *pOp = &context->pVdbe->aOp[context->iOp-1]; + assert( pOp->opcode==OP_CollSeq ); + assert( pOp->p4type==P4_COLLSEQ ); + return pOp->p4.pColl; } /* |