~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/errmsg_print.cc

Merge in catalog updates. This also fixes a bug in schema encoding.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
void sql_perror(const char *message)
38
38
{
39
39
  char errmsg[STRERROR_MAX];
 
40
  errmsg[0]= 0;
40
41
  strerror_r(errno, errmsg, sizeof(errmsg));
41
42
  errmsg_printf(ERRMSG_LVL_ERROR, "%s: %s\n", message, errmsg);
42
43
}