~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.cc

Merged in latest plugin-slot-reorg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1194
1194
N_("You cannot '%s' a log table if logging is enabled"),
1195
1195
/* ER_CANT_RENAME_LOG_TABLE */
1196
1196
N_("Cannot rename '%s'. When logging enabled, rename to/from log table must rename two tables: the log table to an archive table and another table back to '%s'"),
1197
 
/* ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT 42000 */
 
1197
/* ER_WRONG_PARAMCOUNT_TO_FUNCTION 42000 */
1198
1198
N_("Incorrect parameter count in the call to native function '%-.192s'"),
1199
1199
/* ER_WRONG_PARAMETERS_TO_NATIVE_FCT 42000 */
1200
1200
N_("Incorrect parameters in the call to native function '%-.192s'"),
1418
1418
 
1419
1419
const char * error_message(unsigned int code)
1420
1420
{
1421
 
  return drizzled_error_messages[code-ER_ERROR_FIRST];
 
1421
  /**
 
1422
   if the connection is killed, code is 2
 
1423
   See lp bug# 435619
 
1424
   */
 
1425
  if ((code > ER_ERROR_FIRST) )
 
1426
   {
 
1427
     return drizzled_error_messages[code-ER_ERROR_FIRST];
 
1428
   }
 
1429
  else
 
1430
    return drizzled_error_messages[ER_UNKNOWN_ERROR - ER_ERROR_FIRST];
1422
1431
}
1423
1432
 
1424
1433