fix compiler warning on unmatched return type

This commit is contained in:
Seven Du 2014-11-12 13:31:30 +08:00
parent dd629c1516
commit 07030c63f0
1 changed files with 3 additions and 1 deletions

View File

@ -1296,7 +1296,9 @@ SWITCH_DECLARE(switch_bool_t) switch_cache_db_test_reactive(switch_cache_db_hand
}
if (!switch_test_flag((&runtime), SCF_AUTO_SCHEMAS)) {
return switch_cache_db_execute_sql(dbh, (char *)test_sql, NULL);
switch_status_t status = switch_cache_db_execute_sql(dbh, (char *)test_sql, NULL);
return (status == SWITCH_STATUS_SUCCESS) ? SWITCH_TRUE : SWITCH_FALSE;
}
if (io_mutex) switch_mutex_lock(io_mutex);