From 7bc5873743e24ef3dcd291c4aa39138994a81f43 Mon Sep 17 00:00:00 2001 From: zhiru Date: Sun, 30 Jun 2019 13:32:54 +0800 Subject: [PATCH] update Former-commit-id: 0f8c129028a1625d683abf11d6464b0a8fa4fb8c --- cpp/src/db/MySQLMetaImpl.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cpp/src/db/MySQLMetaImpl.cpp b/cpp/src/db/MySQLMetaImpl.cpp index 25d2c77777..328e27f4d7 100644 --- a/cpp/src/db/MySQLMetaImpl.cpp +++ b/cpp/src/db/MySQLMetaImpl.cpp @@ -570,7 +570,8 @@ namespace meta { table_schema.engine_type_ = resRow["engine_type"]; - table_schema.store_raw_data_ = (resRow["store_raw_data"] == 1); + int store_raw_data = resRow["store_raw_data"]; + table_schema.store_raw_data_ = (store_raw_data == 1); } else { return Status::NotFound("Table " + table_schema.table_id_ + " not found"); @@ -685,7 +686,8 @@ namespace meta { table_schema.engine_type_ = resRow["engine_type"]; - table_schema.store_raw_data_ = (resRow["store_raw_data"] == 1); + int store_raw_data = resRow["store_raw_data"]; + table_schema.store_raw_data_ = (store_raw_data == 1); table_schema_array.emplace_back(table_schema); }