Fix potential failure in MySQL CM and fix describe method

This commit is contained in:
Brendan LE GLAUNEC
2016-08-31 12:46:21 +02:00
committed by Brendan Le Glaunec
parent d9945f5e26
commit 34351ae14e
4 changed files with 7 additions and 3 deletions
@@ -158,7 +158,7 @@ mysql_cache_manager::set_streams(std::vector<etix::cameradar::stream_model> mode
// TODO : Update an entry if it already exists.
if (result.data->next()) return;
if (result.data->next()) continue;
query = tool::fmt(this->insert_with_id_query,
this->connection.get_db_name().c_str(),