comparison Framework/PostgreSQL/PostgreSQLDatabase.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 "PostgreSQLDatabase.h" 23 #include "PostgreSQLDatabase.h"
23 24
24 #include "PostgreSQLResult.h" 25 #include "PostgreSQLResult.h"
25 #include "PostgreSQLStatement.h" 26 #include "PostgreSQLStatement.h"
26 #include "PostgreSQLTransaction.h" 27 #include "PostgreSQLTransaction.h"
27 #include "../Common/ImplicitTransaction.h" 28 #include "../Common/ImplicitTransaction.h"
28 29
29 #include <pg_config.h>
30
31 #if PG_VERSION_NUM >= 110000
32 # include <postgres.h>
33 # undef LOG // This one comes from <postgres.h>, and conflicts with <Core/Logging.h>
34 #endif
35
36 #include <Core/Logging.h> 30 #include <Core/Logging.h>
37 #include <Core/OrthancException.h> 31 #include <Core/OrthancException.h>
38 32
39 #include <boost/lexical_cast.hpp> 33 #include <boost/lexical_cast.hpp>
40
41 // PostgreSQL includes
42 #include <libpq-fe.h>
43 #include <c.h>
44 #include <catalog/pg_type.h>
45 34
46 35
47 namespace OrthancDatabases 36 namespace OrthancDatabases
48 { 37 {
49 void PostgreSQLDatabase::ThrowException(bool log) 38 void PostgreSQLDatabase::ThrowException(bool log)