Skip to content

Commit

Permalink
don't attempt to load extension for sqlite shared library
Browse files Browse the repository at this point in the history
  • Loading branch information
hobu committed Aug 25, 2016
1 parent d99f16d commit f15c89d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions plugins/sqlite/io/SQLiteCommon.hpp
Expand Up @@ -183,7 +183,6 @@ class SQLite
if (bWrite)
{
m_log->get(LogLevel::Debug3) << "Connecting db for write"<< std::endl;
std::cerr << "Open for create!\n";
flags |= SQLITE_OPEN_READWRITE | SQLITE_OPEN_CREATE;
}
else
Expand All @@ -195,7 +194,6 @@ class SQLite
int status = sqlite3_open_v2(m_connection.c_str(), &m_session, flags, 0);
if (status != SQLITE_OK)
{
std::cerr << "Connection = " << m_connection << "!\n";
error("Unable to open database", "connect");
}
}
Expand Down Expand Up @@ -488,7 +486,7 @@ class SQLite
if (module_name.size())
oss << module_name;
else
oss << lib_extension << "spatialite" << "." << so_extension;
oss << lib_extension << "spatialite";
oss << "')";
execute(oss.str());
oss.str("");
Expand Down

0 comments on commit f15c89d

Please sign in to comment.