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:22:22 +0100
commit1fd4ed3be02d9745836f16581b5d6673fcbe7572 (patch)
tree7a3a4ac5175c3daf36c3a20ede7fc210e89640be
parent83d0b846c4aab8a603e48a06e5de4b3c5b2d8910 (diff)
downloadaudiomanager-1fd4ed3be02d9745836f16581b5d6673fcbe7572.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 2e2fa7e..fdf71f5 100644
--- a/AudioManagerDaemon/src/CAmDatabaseHandler.cpp
+++ b/AudioManagerDaemon/src/CAmDatabaseHandler.cpp
@@ -3015,7 +3015,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 (?,?)");