MCPcopy Create free account
hub / github.com/MariaDB/server / print_error

Method print_error

sql/ha_sequence.cc:388–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

386*/
387
388void ha_sequence::print_error(int error, myf errflag)
389{
390 const char *sequence_db= table_share->db.str;
391 const char *sequence_name= table_share->table_name.str;
392 DBUG_ENTER("ha_sequence::print_error");
393
394 switch (error) {
395 case HA_ERR_SEQUENCE_INVALID_DATA:
396 {
397 my_error(ER_SEQUENCE_INVALID_DATA, MYF(errflag), sequence_db,
398 sequence_name);
399 DBUG_VOID_RETURN;
400 }
401 case HA_ERR_SEQUENCE_RUN_OUT:
402 {
403 my_error(ER_SEQUENCE_RUN_OUT, MYF(errflag), sequence_db, sequence_name);
404 DBUG_VOID_RETURN;
405 }
406 case HA_ERR_WRONG_COMMAND:
407 my_error(ER_ILLEGAL_HA, MYF(0), "SEQUENCE", sequence_db, sequence_name);
408 DBUG_VOID_RETURN;
409 case ER_WRONG_INSERT_INTO_SEQUENCE:
410 my_error(error, MYF(0));
411 DBUG_VOID_RETURN;
412 }
413 file->print_error(error, errflag);
414 DBUG_VOID_RETURN;
415}
416
417int ha_sequence::check(THD* thd, HA_CHECK_OPT* check_opt)
418{

Callers 1

checkMethod · 0.45

Calls 1

my_errorFunction · 0.85

Tested by

no test coverage detected