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; }