Mercurial > hg > orthanc-databases
comparison Framework/PostgreSQL/PostgreSQLResult.cpp @ 103:9263b3de37ed
fix build on Debian Buster
author | jodogne |
---|---|
date | Tue, 22 Jan 2019 13:14:52 +0000 |
parents | 714c5d2bee76 |
children | eefbcee7bd78 |
comparison
equal
deleted
inserted
replaced
102:905bd21eb327 | 103:9263b3de37ed |
---|---|
17 * You should have received a copy of the GNU Affero General Public License | 17 * You should have received a copy of the GNU Affero General Public License |
18 * along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 * along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 **/ | 19 **/ |
20 | 20 |
21 | 21 |
22 #include "PostgreSQLIncludes.h" | |
22 #include "PostgreSQLResult.h" | 23 #include "PostgreSQLResult.h" |
23 | 24 |
24 #include "../Common/BinaryStringValue.h" | 25 #include "../Common/BinaryStringValue.h" |
25 #include "../Common/FileValue.h" | 26 #include "../Common/FileValue.h" |
26 #include "../Common/Integer64Value.h" | 27 #include "../Common/Integer64Value.h" |
27 #include "../Common/NullValue.h" | 28 #include "../Common/NullValue.h" |
28 #include "../Common/Utf8StringValue.h" | 29 #include "../Common/Utf8StringValue.h" |
29 | 30 |
30 #include <pg_config.h> | |
31 | |
32 #if PG_VERSION_NUM >= 110000 | |
33 # include <postgres.h> | |
34 # undef LOG // This one comes from <postgres.h>, and conflicts with <Core/Logging.h> | |
35 #endif | |
36 | |
37 #include <Core/OrthancException.h> | 31 #include <Core/OrthancException.h> |
38 #include <Core/Logging.h> | 32 #include <Core/Logging.h> |
33 #include <Core/Endianness.h> | |
39 | 34 |
40 #include <cassert> | 35 #include <cassert> |
41 #include <boost/lexical_cast.hpp> | 36 #include <boost/lexical_cast.hpp> |
42 | |
43 // PostgreSQL includes | |
44 #include <libpq-fe.h> | |
45 #include <c.h> | |
46 #include <catalog/pg_type.h> | |
47 | |
48 #include <Core/Endianness.h> | |
49 | 37 |
50 | 38 |
51 namespace OrthancDatabases | 39 namespace OrthancDatabases |
52 { | 40 { |
53 void PostgreSQLResult::Clear() | 41 void PostgreSQLResult::Clear() |