Skip to content

Commit

Permalink
merge sqlite_error_handling
Browse files Browse the repository at this point in the history
fixed minor conflicts (with earlier local change)
  • Loading branch information
mpgerlek committed May 26, 2015
2 parents f93018a + 0d383c6 commit c337c26
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions plugins/sqlite/test/SQLiteTest.cpp
Expand Up @@ -82,7 +82,8 @@ void testReadWrite(bool compression, bool scaling)
std::string tempFilename =
getSQLITEOptions().getValueOrThrow<std::string>("connection");

{
FileUtils::deleteFile(tempFilename);

Options sqliteOptions = getSQLITEOptions();
if (scaling)
{
Expand All @@ -91,6 +92,7 @@ void testReadWrite(bool compression, bool scaling)
}
sqliteOptions.add("compression", compression, "");

{
// remove file from earlier run, if needed
std::string temp_filename =
sqliteOptions.getValueOrThrow<std::string>("connection");
Expand All @@ -110,8 +112,11 @@ void testReadWrite(bool compression, bool scaling)
PointTable table;
sqliteWriter->prepare(table);
sqliteWriter->execute(table);

}

{
// Done - now read back.
StageFactory f;
std::unique_ptr<Stage> sqliteReader(f.createStage("readers.sqlite"));
sqliteReader->setOptions(sqliteOptions);

Expand Down

0 comments on commit c337c26

Please sign in to comment.