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:22:22 +0100 |
commit | 1fd4ed3be02d9745836f16581b5d6673fcbe7572 (patch) | |
tree | 7a3a4ac5175c3daf36c3a20ede7fc210e89640be | |
parent | 83d0b846c4aab8a603e48a06e5de4b3c5b2d8910 (diff) | |
download | audiomanager-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.cpp | 3 |
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 (?,?)"); |