comparison Framework/Common/DatabaseManager.cpp @ 18:c7c54993a92e

fix sqlite
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 10 Jul 2018 10:40:39 +0200
parents 41543239072d
children b2ff1cd2907a
comparison
equal deleted inserted replaced
17:54ea251aed70 18:c7c54993a92e
305 DatabaseManager::CachedStatement::CachedStatement(const StatementLocation& location, 305 DatabaseManager::CachedStatement::CachedStatement(const StatementLocation& location,
306 DatabaseManager& manager, 306 DatabaseManager& manager,
307 const char* sql) : 307 const char* sql) :
308 lock_(manager.mutex_), 308 lock_(manager.mutex_),
309 manager_(manager), 309 manager_(manager),
310 database_(manager_.GetDatabase()),
310 location_(location), 311 location_(location),
311 transaction_(manager.GetTransaction()) 312 transaction_(manager_.GetTransaction())
312 { 313 {
313 Setup(sql); 314 Setup(sql);
314 } 315 }
315 316
316 317
317 DatabaseManager::CachedStatement::CachedStatement(const StatementLocation& location, 318 DatabaseManager::CachedStatement::CachedStatement(const StatementLocation& location,
318 Transaction& transaction, 319 Transaction& transaction,
319 const char* sql) : 320 const char* sql) :
320 lock_(manager_.mutex_), 321 lock_(manager_.mutex_),
321 manager_(transaction.GetManager()), 322 manager_(transaction.GetManager()),
323 database_(manager_.GetDatabase()),
322 location_(location), 324 location_(location),
323 transaction_(manager_.GetTransaction()) 325 transaction_(manager_.GetTransaction())
324 { 326 {
325 Setup(sql); 327 Setup(sql);
326 } 328 }