Tetsuro IKEDA
null+****@clear*****
Thu Oct 4 10:22:13 JST 2012
Tetsuro IKEDA 2010-10-07 15:04:30 +0900 (Thu, 07 Oct 2010) New Revision: aebf29735172fdd3e40c2da3f44c2701658c6014 https://github.com/mroonga/mroonga/commit/aebf29735172fdd3e40c2da3f44c2701658c6014 Log: added handler::get_error_message(). now returns ctx->errbuf to client. Modified files: ha_mroonga.cc ha_mroonga.h Modified: ha_mroonga.cc (+8 -0) =================================================================== --- ha_mroonga.cc 2010-09-25 19:43:27 +0900 (2d84662) +++ ha_mroonga.cc 2010-10-07 15:04:30 +0900 (2c9d8bc) @@ -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 Modified: ha_mroonga.h (+2 -0) =================================================================== --- ha_mroonga.h 2010-09-25 19:43:27 +0900 (f9952a7) +++ ha_mroonga.h 2010-10-07 15:04:30 +0900 (d0586f6) @@ -112,6 +112,8 @@ public: const COND *cond_push(const COND *cond); void cond_pop(); + + bool get_error_message(int error, String *buf); }; #ifdef __cplusplus -------------- next part -------------- HTML����������������������������...Download