Navigation Menu

Skip to content

Commit

Permalink
added handler::get_error_message(). now returns ctx->errbuf to client.
Browse files Browse the repository at this point in the history
  • Loading branch information
ikdttr committed Oct 7, 2010
1 parent 4a52020 commit aebf297
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ha_mroonga.cc
Expand Up @@ -1332,6 +1332,14 @@ void ha_mroonga::cond_pop()
DBUG_VOID_RETURN;
}

bool ha_mroonga::get_error_message(int error, String *buf)
{
DBUG_ENTER("ha_mroonga::get_error_message");
// latest error message
buf->copy(ctx->errbuf, (uint) strlen(ctx->errbuf), system_charset_info);
DBUG_RETURN(FALSE);
}

#ifdef __cplusplus
}
#endif
2 changes: 2 additions & 0 deletions ha_mroonga.h
Expand Up @@ -112,6 +112,8 @@ class ha_mroonga: public handler

const COND *cond_push(const COND *cond);
void cond_pop();

bool get_error_message(int error, String *buf);
};

#ifdef __cplusplus
Expand Down

0 comments on commit aebf297

Please sign in to comment.