From 59f7e142309c50f4c796ea7e7314f20943f3ffc6 Mon Sep 17 00:00:00 2001 From: David Hall Date: Tue, 30 Jan 2018 16:25:15 -0600 Subject: [PATCH] MCOL-962 returned wrong value. --- 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 5ca18e212..196ca2202 100755 --- a/dbcon/mysql/ha_calpont_impl.cpp +++ b/dbcon/mysql/ha_calpont_impl.cpp @@ -1879,7 +1879,7 @@ long long mcssystemreadonly(UDF_INIT* initid, UDF_ARGS* args, { rtn = 1; } - if (dbrm.isReadWrite()) // Returns 0 for writable, 5 for read only + if (dbrm.isReadWrite() > 0) // Returns 0 for writable, 5 for read only { rtn = 2; }