~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/error.cc

  • Committer: Jay Pipes
  • Date: 2009-03-16 15:20:27 UTC
  • mto: (934.3.7 mordred)
  • mto: This revision was merged to the branch mainline in revision 938.
  • Revision ID: jpipes@serialcoder-20090316152027-njlreaim8vxqta6c
Fixes ENUM field type to throw an error on bad data input.  0 is now not
allowed on insertion.  MySQL allows 0, in the manual it states 0 is "the
null string error index" whatever that means.  Drizzle doesn't allow it.

Corrected test cases.

Also cleans up indentation on JOIN::exec() which was bothering me.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1412
1412
N_("Received an out-of-range argument '%s' for function '%s'."),
1413
1413
/* ER_INVALID_TIME_VALUE */
1414
1414
N_("Received an invalid time value '%s'."),
 
1415
/* ER_INVALID_ENUM_VALUE */
 
1416
N_("Received an invalid enum value '%s'.")
1415
1417
};
1416
1418
 
1417
1419
const char * error_message(unsigned int code)