From 4802eaaa9f6111ae80992a21088b39d62f2a41d6 Mon Sep 17 00:00:00 2001
From: Steven Murray <Steven.Murray@cern.ch>
Date: Wed, 9 Mar 2016 07:48:36 +0100
Subject: [PATCH] CTA now builds on SLC6 again

---
 catalogue/CMakeLists.txt | 1 +
 catalogue/SqliteStmt.cpp | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/catalogue/CMakeLists.txt b/catalogue/CMakeLists.txt
index 2abcd930ae..08a4d3ea6d 100644
--- a/catalogue/CMakeLists.txt
+++ b/catalogue/CMakeLists.txt
@@ -20,6 +20,7 @@ set (CATALOGUE_LIB_SRC_FILES
   ColumnNameToIdx.cpp
   DbLogin.cpp
   DummyCatalogue.cpp
+  Sqlite.cpp
   SqliteCatalogue.cpp
   SqliteConn.cpp
   SqliteStmt.cpp)
diff --git a/catalogue/SqliteStmt.cpp b/catalogue/SqliteStmt.cpp
index b8ff978e41..795b5ee647 100644
--- a/catalogue/SqliteStmt.cpp
+++ b/catalogue/SqliteStmt.cpp
@@ -16,6 +16,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
+#include "catalogue/Sqlite.hpp"
 #include "catalogue/SqliteStmt.hpp"
 #include "common/exception/Exception.hpp"
 
@@ -99,7 +100,7 @@ int cta::catalogue::SqliteStmt::step() {
 
   // Throw an appropriate exception
   exception::Exception ex;
-  ex.getMessage() << __FUNCTION__ << " failed: " << sqlite3_errstr(stepRc) <<
+  ex.getMessage() << __FUNCTION__ << " failed: " << Sqlite::rcToStr(stepRc) <<
     ": For SQL statement " << m_sql;
   throw ex;
 }
-- 
GitLab