X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=modules%2Fdb%2Finclude%2Fdpl%2Fdb%2Fthread_database_support.h;h=d0e8cb22d6dc218b099bd06f41d96a5075475788;hb=61b877bfd9f467e56e1380bfe894f209db7d6668;hp=2f45f0fb4536404e497c1390aee2eaae71292b2c;hpb=45bf3bfbb061b87511ece6f50b1aa6c803844a65;p=framework%2Fweb%2Fwrt-commons.git diff --git a/modules/db/include/dpl/db/thread_database_support.h b/modules/db/include/dpl/db/thread_database_support.h index 2f45f0f..d0e8cb2 100644 --- a/modules/db/include/dpl/db/thread_database_support.h +++ b/modules/db/include/dpl/db/thread_database_support.h @@ -149,7 +149,9 @@ class ThreadDatabaseSupport : { } - void AttachToThread() + void AttachToThread( + DPL::DB::SqlConnection::Flag::Option options = + DPL::DB::SqlConnection::Flag::RO) { Linger() = false; @@ -162,7 +164,7 @@ class ThreadDatabaseSupport : // Initialize SQL connection described in traits LogInfo("Attaching thread database connection: " << m_address); - Connection() = new DPL::DB::SqlConnection(m_address.c_str(), m_flags); + Connection() = new DPL::DB::SqlConnection(m_address.c_str(), m_flags, options); RefCounter() = 0;