Skip to content

Commit

Permalink
1.修改上一个修改DROP TABLE IF EXISTS的bug代码不合适的地方。2.提升一个版本号
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoyan.gao committed Feb 16, 2017
1 parent c2a0124 commit e037e9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmake/mysql_version.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ MACRO(GET_MYSQL_VERSION)
MESSAGE(FATAL_ERROR "VERSION file cannot be parsed.")
ENDIF()

SET(VERSION "Inception2.1.49")
SET(VERSION "Inception2.1.50")
MESSAGE(STATUS "MySQL ${VERSION}")
SET(MYSQL_BASE_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}" CACHE INTERNAL "MySQL Base version")
SET(MYSQL_NO_DASH_VERSION "${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}")
Expand Down
5 changes: 4 additions & 1 deletion sql/sql_parse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10898,6 +10898,9 @@ mysql_backup_sql(
sql_cache_node_t* sql_cache_node
)
{
if (sql_cache_node->table_info == NULL)
return FALSE;

if (mysql_sql_cache_is_valid_for_ddl(sql_cache_node) &&
mysql_backup_single_ddl_statement(thd, mi, mysql, sql_cache_node))
{
Expand Down Expand Up @@ -11011,7 +11014,7 @@ int mysql_execute_commit(THD *thd)
while (sql_cache_node != NULL)
{
next_sql_cache_node = LIST_GET_NEXT(link, sql_cache_node);
if ((mysql = thd->get_audit_connection()) == NULL || sql_cache_node->table_info == NULL)
if ((mysql = thd->get_audit_connection()) == NULL)
goto error;

//如果一条语句备份失败了,则要重新请求一次,对下一条语句做备份
Expand Down

0 comments on commit e037e9a

Please sign in to comment.