[Groonga-mysql-commit] mroonga/mroonga at a17ee60 [master] Show more information on warning

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Mon Apr 22 15:39:59 JST 2013


Kouhei Sutou	2013-04-22 15:39:59 +0900 (Mon, 22 Apr 2013)

  New Revision: a17ee60de25e297749a431fe5110549427d981a8
  https://github.com/mroonga/mroonga/commit/a17ee60de25e297749a431fe5110549427d981a8

  Message:
    Show more information on warning

  Modified files:
    lib/mrn_multiple_column_key_codec.cpp

  Modified: lib/mrn_multiple_column_key_codec.cpp (+11 -4)
===================================================================
--- lib/mrn_multiple_column_key_codec.cpp    2013-04-22 15:27:45 +0900 (41dfcb3)
+++ lib/mrn_multiple_column_key_codec.cpp    2013-04-22 15:39:59 +0900 (92ce6c6)
@@ -520,10 +520,17 @@ namespace mrn {
         }
         new_blob_data_length = normalized_length;
       } else {
-        push_warning(thread_,
-                     Sql_condition::WARN_LEVEL_WARN,
-                     WARN_DATA_TRUNCATED,
-                     "normalized data truncated for multiple column index");
+        push_warning_printf(thread_,
+                            Sql_condition::WARN_LEVEL_WARN,
+                            WARN_DATA_TRUNCATED,
+                            "normalized data truncated "
+                            "for multiple column index: "
+                            "normalized-data-size: <%u> "
+                            "max-data-size: <%u> "
+                            "column-name: <%s>",
+                            normalized_length,
+                            UINT_MAX16,
+                            field->field_name);
         memcpy(grn_key, normalized, blob_data_length);
         new_blob_data_length = blob_data_length;
       }
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-mysql-commit mailing list
アーカイブの一覧に戻る