mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-26 18:42:41 +01:00
workaround for GH #578
This commit is contained in:
@@ -28,8 +28,11 @@
|
||||
#include "Poco/SharedPtr.h"
|
||||
|
||||
|
||||
struct sqlite3;
|
||||
struct sqlite3_stmt;
|
||||
extern "C"
|
||||
{
|
||||
typedef struct sqlite3 sqlite3;
|
||||
typedef struct sqlite3_stmt sqlite3_stmt;
|
||||
}
|
||||
|
||||
|
||||
namespace Poco {
|
||||
|
||||
@@ -25,16 +25,16 @@
|
||||
#include "Poco/Data/SQLite/Binder.h"
|
||||
#include "Poco/Data/AbstractSessionImpl.h"
|
||||
#include "Poco/SharedPtr.h"
|
||||
#include "Poco/Mutex.h"
|
||||
|
||||
|
||||
struct sqlite3;
|
||||
struct sqlite3_stmt;
|
||||
extern "C"
|
||||
{
|
||||
typedef struct sqlite3 sqlite3;
|
||||
}
|
||||
|
||||
|
||||
namespace Poco {
|
||||
|
||||
class Mutex;
|
||||
|
||||
namespace Data {
|
||||
namespace SQLite {
|
||||
|
||||
@@ -127,7 +127,8 @@ private:
|
||||
bool _connected;
|
||||
bool _isTransaction;
|
||||
int _timeout;
|
||||
Mutex _mutex;
|
||||
Poco::Mutex _mutex;
|
||||
|
||||
static const std::string DEFERRED_BEGIN_TRANSACTION;
|
||||
static const std::string COMMIT_TRANSACTION;
|
||||
static const std::string ABORT_TRANSACTION;
|
||||
|
||||
@@ -28,8 +28,11 @@
|
||||
#include <map>
|
||||
|
||||
|
||||
struct sqlite3;
|
||||
struct sqlite3_stmt;
|
||||
extern "C"
|
||||
{
|
||||
typedef struct sqlite3 sqlite3;
|
||||
typedef struct sqlite3_stmt sqlite3_stmt;
|
||||
}
|
||||
|
||||
|
||||
namespace Poco {
|
||||
@@ -200,13 +203,6 @@ private:
|
||||
//
|
||||
// inlines
|
||||
//
|
||||
|
||||
inline sqlite3* Utility::dbHandle(const Session& session)
|
||||
{
|
||||
return reinterpret_cast<sqlite3*>(AnyCast<void*>(session.getProperty("handle")));
|
||||
}
|
||||
|
||||
|
||||
inline std::string Utility::lastError(const Session& session)
|
||||
{
|
||||
poco_assert_dbg ((0 == icompare(session.connector(), 0, 6, "sqlite")));
|
||||
|
||||
Reference in New Issue
Block a user