147
148
DRIZZLE_ERROR *err= NULL;
150
151
/* We have to use warn_root, as mem_root is freed after each query */
151
152
err= new (&session->warn_root) DRIZZLE_ERROR(session, code, level, msg);
154
155
session->warn_count[(uint32_t) level]++;
155
156
session->total_warn_count++;