1 | // |
---|---|
2 | // Range.cpp |
3 | // |
4 | // Library: SQL |
5 | // Package: SQLCore |
6 | // Module: Range |
7 | // |
8 | // Copyright (c) 2006, Applied Informatics Software Engineering GmbH. |
9 | // and Contributors. |
10 | // |
11 | // SPDX-License-Identifier: BSL-1.0 |
12 | // |
13 | |
14 | |
15 | #include "Poco/SQL/Range.h" |
16 | #include "Poco/SQL/SQLException.h" |
17 | |
18 | |
19 | namespace Poco { |
20 | namespace SQL { |
21 | |
22 | |
23 | using namespace Keywords; |
24 | |
25 | |
26 | Range::Range(Limit::SizeT lowValue, Limit::SizeT upValue, bool hardLimit) : |
27 | _lower(lowerLimit(lowValue)), |
28 | _upper(upperLimit(upValue, hardLimit)) |
29 | { |
30 | if (lowValue > upValue) |
31 | throw LimitException("lowerLimit > upperLimit!"); |
32 | } |
33 | |
34 | |
35 | Range::~Range() |
36 | { |
37 | } |
38 | |
39 | |
40 | } } // namespace Poco::SQL |
41 |