439ed10
diff -up poco-1.6.1-all/Data/SQLite/src/Utility.cpp.no_busy_snapshot poco-1.6.1-all/Data/SQLite/src/Utility.cpp
439ed10
--- poco-1.6.1-all/Data/SQLite/src/Utility.cpp.no_busy_snapshot	2015-08-04 01:21:03.000000000 -0400
439ed10
+++ poco-1.6.1-all/Data/SQLite/src/Utility.cpp	2016-02-05 21:37:56.006325855 -0500
439ed10
@@ -167,7 +167,9 @@ void Utility::throwException(int rc, con
439ed10
 		throw ExecutionAbortedException(std::string("Callback routine requested an abort"), addErrMsg);
439ed10
 	case SQLITE_BUSY:
439ed10
 	case SQLITE_BUSY_RECOVERY:
439ed10
+#if defined(SQLITE_BUSY_SNAPSHOT)
439ed10
 	case SQLITE_BUSY_SNAPSHOT:
439ed10
+#endif
439ed10
 		throw DBLockedException(std::string("The database file is locked"), addErrMsg);
439ed10
 	case SQLITE_LOCKED:
439ed10
 		throw TableLockedException(std::string("A table in the database is locked"), addErrMsg);