[Groonga-mysql-commit] mroonga/mroonga at 189c62b [master] mysql8: report primary key truncated as error on strict mode

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jul 30 11:58:12 JST 2018


Kouhei Sutou	2018-07-30 11:58:12 +0900 (Mon, 30 Jul 2018)

  New Revision: 189c62b66928758cfda85c612d967c8faacc48ba
  https://github.com/mroonga/mroonga/commit/189c62b66928758cfda85c612d967c8faacc48ba

  Message:
    mysql8: report primary key truncated as error on strict mode

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+4 -0)
===================================================================
--- ha_mroonga.cpp    2018-07-30 11:58:08 +0900 (ed3e2feb)
+++ ha_mroonga.cpp    2018-07-30 11:58:12 +0900 (d6569275)
@@ -7384,6 +7384,10 @@ int ha_mroonga::storage_update_row(const uchar *old_data,
                    column_name.c_str());
           push_warning(thd, MRN_SEVERITY_WARNING,
                        WARN_DATA_TRUNCATED, message);
+          if (MRN_ABORT_ON_WARNING(thd)) {
+            error = ER_ERROR_ON_WRITE;
+            goto err;
+          }
         }
         continue;
       }
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-mysql-commit/attachments/20180730/d72c6e2a/attachment.htm 



More information about the Groonga-mysql-commit mailing list
Back to archive index