mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-18 19:48:44 +02:00
some renaming and clean-up
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Session.cpp
|
||||
//
|
||||
// $Id: //poco/Main/Data/src/Session.cpp#3 $
|
||||
// $Id: //poco/Main/Data/src/Session.cpp#5 $
|
||||
//
|
||||
// Library: Data
|
||||
// Package: DataCore
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
|
||||
#include "Poco/Data/Session.h"
|
||||
#include "Poco/Data/SessionFactory.h"
|
||||
#include <algorithm>
|
||||
|
||||
|
||||
@@ -50,6 +51,13 @@ Session::Session(Poco::AutoPtr<SessionImpl> ptrImpl):
|
||||
}
|
||||
|
||||
|
||||
Session::Session(const std::string& connector, const std::string& connectionString)
|
||||
{
|
||||
Session newSession(SessionFactory::instance().create(connector, connectionString));
|
||||
swap(newSession);
|
||||
}
|
||||
|
||||
|
||||
Session::Session(const Session& other):
|
||||
_ptrImpl(other._ptrImpl),
|
||||
_statementCreator(other._ptrImpl)
|
||||
|
Reference in New Issue
Block a user