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:21:33 +0100
commit5013cc0daa2c7519e66d6a59cd345cde13447a0b (patch)
treeebb70760f184e62e36f6145c54546eff163b6079
parent81f532ef9954dd61fcd975a2aaf3f1b86a320454 (diff)
downloadaudiomanager-5013cc0daa2c7519e66d6a59cd345cde13447a0b.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 8ed3bd5..f00b5ab 100644
--- a/AudioManagerDaemon/src/CAmDatabaseHandler.cpp
+++ b/AudioManagerDaemon/src/CAmDatabaseHandler.cpp
@@ -3228,7 +3228,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 (?,?)");