[Groonga-mysql-commit] mroonga/mroonga [master] Change error message for geometry type. refs #1195

Back to archive index

null+****@clear***** null+****@clear*****
2012年 2月 23日 (木) 23:23:56 JST


Kentoku	2012-02-23 23:23:56 +0900 (Thu, 23 Feb 2012)

  New Revision: d515cc36e6004f16cf263ebcdfe2f0c1972ec0e9

  Log:
    Change error message for geometry type. refs #1195

  Modified files:
    ha_mroonga.cc
    mrn_err.h

  Modified: ha_mroonga.cc (+3 -1)
===================================================================
--- ha_mroonga.cc    2012-02-23 02:25:39 +0900 (9551d95)
+++ ha_mroonga.cc    2012-02-23 23:23:56 +0900 (253961c)
@@ -1110,7 +1110,9 @@ static int mrn_set_geometry(grn_ctx *ctx, grn_obj *buf,
       break;
     }
   default:
-    error = HA_ERR_UNSUPPORTED;
+    my_printf_error(ER_MRN_GEOMETRY_NOT_SUPPORT_NUM,
+      ER_MRN_GEOMETRY_NOT_SUPPORT_STR, MYF(0));
+    error = ER_MRN_GEOMETRY_NOT_SUPPORT_NUM;
     break;
   }
   delete geometry;

  Modified: mrn_err.h (+2 -0)
===================================================================
--- mrn_err.h    2012-02-23 02:25:39 +0900 (d916201)
+++ mrn_err.h    2012-02-23 23:23:56 +0900 (884f660)
@@ -22,5 +22,7 @@
 #define ER_MRN_INVALID_TABLE_PARAM_STR "The table parameter '%-.64s' is invalid"
 #define ER_MRN_CHARSET_NOT_SUPPORT_NUM 16502
 #define ER_MRN_CHARSET_NOT_SUPPORT_STR "The character set '%s[%s]' is not supported by groonga"
+#define ER_MRN_GEOMETRY_NOT_SUPPORT_NUM 16503
+#define ER_MRN_GEOMETRY_NOT_SUPPORT_STR "This geometry type is not supported. Groonga is supported point only"
 
 #endif /* _mrn_err_h */




Groonga-mysql-commit メーリングリストの案内
Back to archive index