From 359781f3bb75894c51a85806a994563574f23494 Mon Sep 17 00:00:00 2001 From: David Hall Date: Wed, 17 Feb 2016 15:00:18 -0600 Subject: [PATCH] Need to use only current MariaDB errors. Can't makenew ones. --- dbcon/mysql/ha_calpont_impl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dbcon/mysql/ha_calpont_impl.cpp b/dbcon/mysql/ha_calpont_impl.cpp index a42bda028..3f912e55f 100755 --- a/dbcon/mysql/ha_calpont_impl.cpp +++ b/dbcon/mysql/ha_calpont_impl.cpp @@ -765,7 +765,7 @@ uint32_t doUpdateDelete(THD *thd) if (rc != 0 ) { - setError(current_thd, ER_ENGINE_READ_ONLY, "Cannot execute the statement. DBRM is read only!"); + setError(current_thd, ER_READ_ONLY_MODE, "Cannot execute the statement. DBRM is read only!"); return ER_CHECK_NOT_IMPLEMENTED; }