aboutsummaryrefslogtreecommitdiff
path: root/src/func.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2014-09-25 13:17:30 +0000
committerdrh <drh@noemail.net>2014-09-25 13:17:30 +0000
commita15cc47f81fc9fe637166e8ea475e8d81557e0c7 (patch)
tree34601866d2243a9b9a082fa7007313081be6b589 /src/func.c
parent2c4dc635a198787e14f2548ddd04d9fade2ab278 (diff)
downloadsqlite-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.c5
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;
}
/*