1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Bug fix: Sometimes NULL results were not being passed as nulls to the

callback function. (CVS 312)

FossilOrigin-Name: 94ce8282360d4a0dd2032564aae06f0f1902cb5b
This commit is contained in:
drh
2001-11-13 19:35:14 +00:00
parent 606c0ddcfc
commit a84f6005a9
3 changed files with 11 additions and 9 deletions

View File

@@ -30,7 +30,7 @@
** But other routines are also provided to help in building up
** a program instruction by instruction.
**
** $Id: vdbe.c,v 1.99 2001/11/12 13:51:43 drh Exp $
** $Id: vdbe.c,v 1.100 2001/11/13 19:35:15 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -1284,7 +1284,9 @@ case OP_Callback: {
VERIFY( if( i<0 ) goto not_enough_stack; )
VERIFY( if( NeedStack(p, p->tos+2) ) goto no_mem; )
for(j=i; j<=p->tos; j++){
if( (aStack[j].flags & STK_Null)==0 ){
if( aStack[j].flags & STK_Null ){
zStack[j] = 0;
}else{
if( Stringify(p, j) ) goto no_mem;
}
}