Mercurial > hg > orthanc-databases
comparison Framework/PostgreSQL/PostgreSQLStatement.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 "PostgreSQLStatement.h" | 23 #include "PostgreSQLStatement.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/ResultBase.h" | 29 #include "../Common/ResultBase.h" |
29 #include "../Common/Utf8StringValue.h" | 30 #include "../Common/Utf8StringValue.h" |
30 #include "PostgreSQLResult.h" | 31 #include "PostgreSQLResult.h" |
31 | 32 |
32 #include <pg_config.h> | |
33 | |
34 #if PG_VERSION_NUM >= 110000 | |
35 # include <postgres.h> | |
36 # undef LOG // This one comes from <postgres.h>, and conflicts with <Core/Logging.h> | |
37 #endif | |
38 | |
39 #include <Core/Logging.h> | 33 #include <Core/Logging.h> |
40 #include <Core/OrthancException.h> | 34 #include <Core/OrthancException.h> |
41 #include <Core/Toolbox.h> | 35 #include <Core/Toolbox.h> |
36 #include <Core/Endianness.h> | |
42 | 37 |
43 #include <cassert> | 38 #include <cassert> |
44 | |
45 // PostgreSQL includes | |
46 #include <libpq-fe.h> | |
47 #include <c.h> | |
48 #include <catalog/pg_type.h> | |
49 | |
50 #include <Core/Endianness.h> | |
51 | 39 |
52 | 40 |
53 namespace OrthancDatabases | 41 namespace OrthancDatabases |
54 { | 42 { |
55 class PostgreSQLStatement::Inputs : public boost::noncopyable | 43 class PostgreSQLStatement::Inputs : public boost::noncopyable |