database_connection.cpp: Fix compil issues on msys2. these issues are
due to "old" (or not existing) types used in sql.h
This commit is contained in:
parent
66febafb9c
commit
5c7f1083c7
|
@ -21,7 +21,21 @@
|
|||
#include <boost/locale.hpp>
|
||||
#include <fmt/core.h>
|
||||
#include <nanodbc/nanodbc.h>
|
||||
|
||||
// Some outdated definitions are used in sql.h
|
||||
// We need to define them for "recent" dev tools
|
||||
#define INT64 int64_t
|
||||
#define UINT64 uint64_t
|
||||
|
||||
#ifdef __MINGW32__
|
||||
#define BYTE uint8_t
|
||||
#define WORD uint16_t
|
||||
#define DWORD uint32_t
|
||||
#define HWND uint32_t /* dummy define */
|
||||
#endif
|
||||
|
||||
#include <sql.h> // SQL_IDENTIFIER_QUOTE_CHAR
|
||||
|
||||
#include <wx/log.h>
|
||||
|
||||
#include <database/database_connection.h>
|
||||
|
@ -203,7 +217,7 @@ bool DATABASE_CONNECTION::cacheColumns()
|
|||
std::string columnKey = toUTF8( columns.column_name() );
|
||||
m_columnCache[tableIter.first][columnKey] = columns.data_type();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
catch( nanodbc::database_error& e )
|
||||
{
|
||||
|
|
|
@ -23,7 +23,8 @@
|
|||
|
||||
#include <fmt/core.h>
|
||||
#include <fmt/ostream.h>
|
||||
#include <wx/wx.h>
|
||||
|
||||
#include <wx/string.h>
|
||||
|
||||
// {fmt} formatter for wxString
|
||||
FMT_BEGIN_NAMESPACE
|
||||
|
|
Loading…
Reference in New Issue