null+****@clear*****
null+****@clear*****
2010年 10月 7日 (木) 15:04:30 JST
Tetsuro IKEDA 2010-10-07 06:04:30 +0000 (Thu, 07 Oct 2010)
New Revision: 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 10:43:27 +0000 (2d84662)
+++ ha_mroonga.cc 2010-10-07 06:04:30 +0000 (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 10:43:27 +0000 (f9952a7)
+++ ha_mroonga.h 2010-10-07 06:04:30 +0000 (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