Skip to content
Snippets Groups Projects
Commit 8cf73e9a authored by Marcus Comstedt's avatar Marcus Comstedt
Browse files

Fixed a bug in the handling of NULL fields.

Rev: src/modules/Mysql/result.c:1.7
parent 01e74b08
No related branches found
No related tags found
No related merge requests found
/*
* $Id: result.c,v 1.6 1997/04/20 04:07:06 grubba Exp $
* $Id: result.c,v 1.7 1997/06/28 19:00:05 marcus Exp $
*
* mysql query result
*
......@@ -75,7 +75,7 @@ typedef struct dynamic_buffer_s dynamic_buffer;
* Globals
*/
RCSID("$Id: result.c,v 1.6 1997/04/20 04:07:06 grubba Exp $");
RCSID("$Id: result.c,v 1.7 1997/06/28 19:00:05 marcus Exp $");
struct program *mysql_result_program = NULL;
......@@ -389,6 +389,8 @@ static void f_fetch_row(INT32 args)
} else {
/* NULL? */
push_int(0);
if(i+1<num_fields)
mysql_field_seek(PIKE_MYSQL_RES->result, i+1);
}
}
f_aggregate(num_fields);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment