[core] fix long sql stmts may be skipped, introduced in 2e88c67c9d
in 2009
This commit is contained in:
parent
2bdefa3532
commit
3ce9a9a393
|
@ -790,12 +790,8 @@ static switch_status_t switch_cache_db_execute_sql_chunked(switch_cache_db_handl
|
||||||
p--;
|
p--;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (p <= s)
|
|
||||||
break;
|
|
||||||
|
|
||||||
|
|
||||||
status = switch_cache_db_execute_sql_real(dbh, s, err);
|
status = switch_cache_db_execute_sql_real(dbh, s, err);
|
||||||
if (status != SWITCH_STATUS_SUCCESS || (err && *err)) {
|
if (p <= s || status != SWITCH_STATUS_SUCCESS || (err && *err)) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue