mirror of
https://github.com/pocoproject/poco.git
synced 2025-05-29 07:25:53 +02:00

* make bool Session::isTransaction() return Poco::Optional * move parsing to Statement * SQLParser make build * other fixes and improvemets #4230
69 lines
1.1 KiB
C++
69 lines
1.1 KiB
C++
//
|
|
// StatementCreator.cpp
|
|
//
|
|
// Library: Data
|
|
// Package: DataCore
|
|
// Module: StatementCreator
|
|
//
|
|
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "Poco/Data/StatementCreator.h"
|
|
#include <algorithm>
|
|
|
|
|
|
namespace Poco {
|
|
namespace Data {
|
|
|
|
|
|
StatementCreator::StatementCreator()
|
|
{
|
|
}
|
|
|
|
|
|
StatementCreator::StatementCreator(Poco::AutoPtr<SessionImpl> ptrImpl):
|
|
_ptrImpl(ptrImpl)
|
|
{
|
|
}
|
|
|
|
|
|
StatementCreator::StatementCreator(const StatementCreator& other):
|
|
_ptrImpl(other._ptrImpl)
|
|
{
|
|
}
|
|
|
|
|
|
StatementCreator::StatementCreator(StatementCreator&& other) noexcept:
|
|
_ptrImpl(std::move(other._ptrImpl))
|
|
{
|
|
other._ptrImpl = nullptr;
|
|
}
|
|
|
|
|
|
StatementCreator& StatementCreator::operator = (const StatementCreator& other)
|
|
{
|
|
StatementCreator tmp(other);
|
|
swap(tmp);
|
|
return *this;
|
|
}
|
|
|
|
|
|
StatementCreator& StatementCreator::operator = (StatementCreator&& other) noexcept
|
|
{
|
|
_ptrImpl = std::move(other._ptrImpl);
|
|
other._ptrImpl = nullptr;
|
|
return *this;
|
|
}
|
|
|
|
|
|
StatementCreator::~StatementCreator()
|
|
{
|
|
}
|
|
|
|
|
|
} } // namespace Poco::Data
|