summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoehring <Thomas.Goehring@continental-corporation.com>2013-02-12 13:46:08 +0100
committerChristian Linke <christian.linke@bmw.de>2013-02-12 16:20:41 +0100
commit81975ada18417ac5b194e782e0e869f56358a2c0 (patch)
tree7a45552a1e91daf581fa25e3d6169bdeb09401ff
parent13fdef6cab70b699832b27d2f87e65eaf7f72162 (diff)
downloadaudiomanager-81975ada18417ac5b194e782e0e869f56358a2c0.tar.gz
CAmDatabaseHandler::enterSourceClassDB does not work in release mode
Signed-off-by: Goehring <Thomas.Goehring@continental-corporation.com>
-rw-r--r--AudioManagerDaemon/src/CAmDatabaseHandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/AudioManagerDaemon/src/CAmDatabaseHandler.cpp b/AudioManagerDaemon/src/CAmDatabaseHandler.cpp
index 44a1d0c..7fcdd96 100644
--- a/AudioManagerDaemon/src/CAmDatabaseHandler.cpp
+++ b/AudioManagerDaemon/src/CAmDatabaseHandler.cpp
@@ -3014,7 +3014,8 @@ am_Error_e CAmDatabaseHandler::enterSourceClassDB(am_sourceClass_t & sourceClass
//now we need to create the additional tables:
command = "CREATE TABLE SourceClassProperties" + i2s(sourceClassID) + std::string("(classProperty INTEGER, value INTEGER)");
- assert(sqQuery(command));
+ if (!this->sqQuery(command))
+ return (E_DATABASE_ERROR);
//fill ConnectionFormats
command = "INSERT INTO SourceClassProperties" + i2s(sourceClassID) + std::string("(classProperty,value) VALUES (?,?)");