diff options
author | Goehring <Thomas.Goehring@continental-corporation.com> | 2013-02-12 13:46:08 +0100 |
---|---|---|
committer | Christian Linke <christian.linke@bmw.de> | 2013-02-12 16:21:33 +0100 |
commit | 5013cc0daa2c7519e66d6a59cd345cde13447a0b (patch) | |
tree | ebb70760f184e62e36f6145c54546eff163b6079 /AudioManagerDaemon/src/CAmDatabaseHandler.cpp | |
parent | 81f532ef9954dd61fcd975a2aaf3f1b86a320454 (diff) | |
download | audiomanager-5013cc0daa2c7519e66d6a59cd345cde13447a0b.tar.gz |
CAmDatabaseHandler::enterSourceClassDB does not work in release mode
Signed-off-by: Goehring <Thomas.Goehring@continental-corporation.com>
Diffstat (limited to 'AudioManagerDaemon/src/CAmDatabaseHandler.cpp')
-rw-r--r-- | AudioManagerDaemon/src/CAmDatabaseHandler.cpp | 3 |
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 (?,?)"); |