}
}
-void SqlStorage::updateSessionName(Session& session, std::string newName)
+void SqlStorage::updateSessionName(Session& session, const std::string& newName)
{
- //FIXME - newName not used! The sql query creation below should be fixed.
- // submitted bug: https://bugs.tizen.org/jira/browse/TT-218
- (void)newName;
if(session.isValid()){
boost::format updateSessionNameString("UPDATE %1% SET %2% = ? WHERE %3% = ?" );
updateSessionNameString % TABLE_SESSION % COL_SESSION_NAME % COL_SESSION_ID;
try{
storage::SQLQuery updateSessionNameQuery(connection->prepare(updateSessionNameString.str()));
- updateSessionNameQuery.bindText(1, session.sessionName());
+ updateSessionNameQuery.bindText(1, newName);
updateSessionNameQuery.bindInt(2, session.sessionId());
updateSessionNameQuery.exec();
}catch( storage::StorageException &e){
/**
* Change session name.
*/
- void updateSessionName(tizen_browser::Session::Session& session, std::string newName);
+ void updateSessionName(tizen_browser::Session::Session& session, const std::string& newName);
/**
* Deletes item form session, and stores changes.