/specs/poco/poco-1.3.5_RH-old-SQLite.patch

http://github.com/repoforge/rpms · Patch · 51 lines · 43 code · 8 blank · 0 comment · 0 complexity · 2116f613fb90159603e61cb05297b3ad MD5 · raw file

  1. diff -up poco-1.3.5-all/Data/SQLite/include/Poco/Data/SQLite/SQLite.h.old-sqlite poco-1.3.5-all/Data/SQLite/include/Poco/Data/SQLite/SQLite.h
  2. --- poco-1.3.5-all/Data/SQLite/include/Poco/Data/SQLite/SQLite.h.old-sqlite 2010-04-06 14:39:21.000000000 +0200
  3. +++ poco-1.3.5-all/Data/SQLite/include/Poco/Data/SQLite/SQLite.h 2010-04-06 14:40:44.000000000 +0200
  4. @@ -66,6 +66,11 @@
  5. #define SQLite_API
  6. #endif
  7. +// Attempt to make this build compatible with more recent versions of SQLite
  8. +// API.
  9. +#ifndef SQLITE_LOCKED_SHAREDCACHE
  10. + #define SQLITE_LOCKED_SHAREDCACHE (SQLITE_LOCKED | (1<<8) )
  11. +#endif
  12. //
  13. // Automatically link Data library.
  14. diff -up poco-1.3.5-all/Data/SQLite/src/Connector.cpp.old-sqlite poco-1.3.5-all/Data/SQLite/src/Connector.cpp
  15. --- poco-1.3.5-all/Data/SQLite/src/Connector.cpp.old-sqlite 2010-04-06 14:34:27.000000000 +0200
  16. +++ poco-1.3.5-all/Data/SQLite/src/Connector.cpp 2010-04-06 14:11:24.000000000 +0200
  17. @@ -84,7 +84,7 @@ void Connector::enableSharedCache(bool f
  18. void Connector::enableSoftHeapLimit(int limit)
  19. {
  20. - sqlite3_soft_heap_limit(limit);
  21. + //sqlite3_soft_heap_limit(limit);
  22. }
  23. diff -up poco-1.3.5-all/Data/SQLite/src/SessionImpl.cpp.old-sqlite poco-1.3.5-all/Data/SQLite/src/SessionImpl.cpp
  24. --- poco-1.3.5-all/Data/SQLite/src/SessionImpl.cpp.old-sqlite 2009-05-12 20:22:14.000000000 +0200
  25. +++ poco-1.3.5-all/Data/SQLite/src/SessionImpl.cpp 2010-04-03 10:01:45.000000000 +0200
  26. @@ -115,7 +115,6 @@ void SessionImpl::open()
  27. Utility::throwException(rc);
  28. }
  29. - sqlite3_extended_result_codes(_pDB, 1);
  30. _connected = true;
  31. }
  32. diff -up poco-1.3.5-all/Data/SQLite/src/SQLiteStatementImpl.cpp.old-sqlite poco-1.3.5-all/Data/SQLite/src/SQLiteStatementImpl.cpp
  33. --- poco-1.3.5-all/Data/SQLite/src/SQLiteStatementImpl.cpp.old-sqlite 2009-05-12 20:22:14.000000000 +0200
  34. +++ poco-1.3.5-all/Data/SQLite/src/SQLiteStatementImpl.cpp 2010-04-06 14:41:10.000000000 +0200
  35. @@ -103,7 +103,7 @@ void SQLiteStatementImpl::compileImplImp
  36. while (rc == SQLITE_OK && !pStmt && !queryFound)
  37. {
  38. - rc = sqlite3_prepare_v2(_pDB, pSql, -1, &pStmt, &pLeftover);
  39. + rc = sqlite3_prepare(_pDB, pSql, -1, &pStmt, &pLeftover);
  40. if (rc != SQLITE_OK)
  41. {
  42. if (pStmt)
  43. diff -up poco-1.3.5-all/Data/SQLite/src/Utility.cpp.old-sqlite poco-1.3.5-all/Data/SQLite/src/Utility.cpp