ThinkPart

Andrey's blog

 

Where is the problem in the following code?

 
#define MYSQLND_INC_GLOBAL_STATISTIC(statistic) \
 { \
     if (MYSQLND_G(collect_statistics) && statistic != STAT_LAST) { \
        mysqlnd_global_stats->values[statistic]++; \
    } \
 }

I usually don't make this mistake, but in this particular case I did. Can you spot it?