Index: src/libchcore/Tests/TestsTSQLiteStatement.cpp =================================================================== diff -u -N -r3397fd021739bea537248415a7b4fc2712dd2320 -rd32a79f0e9220bad2c6eeb5e8a986228b6e832fb --- src/libchcore/Tests/TestsTSQLiteStatement.cpp (.../TestsTSQLiteStatement.cpp) (revision 3397fd021739bea537248415a7b4fc2712dd2320) +++ src/libchcore/Tests/TestsTSQLiteStatement.cpp (.../TestsTSQLiteStatement.cpp) (revision d32a79f0e9220bad2c6eeb5e8a986228b6e832fb) @@ -5,11 +5,12 @@ #include "../TSQLiteStatement.h" #include "../TSQLiteException.h" +using namespace chcore; using namespace chcore::sqlite; TEST(SQLiteStatement, CorrectPrepare) { - TSQLiteDatabasePtr spDB(new TSQLiteDatabase(_T(":memory:"))); + TSQLiteDatabasePtr spDB(new TSQLiteDatabase(PathFromString(_T(":memory:")))); TSQLiteStatement tStatement(spDB); tStatement.Prepare(_T("CREATE TABLE test(col1 INTEGER, col2 VARCHAR(40))")); @@ -18,15 +19,15 @@ TEST(SQLiteStatement, IncorrectPrepare) { - TSQLiteDatabasePtr spDB(new TSQLiteDatabase(_T(":memory:"))); + TSQLiteDatabasePtr spDB(new TSQLiteDatabase(PathFromString(_T(":memory:")))); TSQLiteStatement tStatement(spDB); EXPECT_THROW(tStatement.Prepare(_T("CREATE incorrect TABLE test(col1 INTEGER, col2 VARCHAR(40))")), TSQLiteException); } TEST(SQLiteStatement, PreparedStep) { - TSQLiteDatabasePtr spDB(new TSQLiteDatabase(_T(":memory:"))); + TSQLiteDatabasePtr spDB(new TSQLiteDatabase(PathFromString(_T(":memory:")))); TSQLiteStatement tStatement(spDB); tStatement.Prepare(_T("CREATE TABLE test(col1 INTEGER, col2 VARCHAR(40))")); @@ -35,15 +36,15 @@ TEST(SQLiteStatement, UnpreparedStep) { - TSQLiteDatabasePtr spDB(new TSQLiteDatabase(_T(":memory:"))); + TSQLiteDatabasePtr spDB(new TSQLiteDatabase(PathFromString(_T(":memory:")))); TSQLiteStatement tStatement(spDB); EXPECT_THROW(tStatement.Step(), TSQLiteException); } TEST(SQLiteStatement, UnpreparedBind) { - TSQLiteDatabasePtr spDB(new TSQLiteDatabase(_T(":memory:"))); + TSQLiteDatabasePtr spDB(new TSQLiteDatabase(PathFromString(_T(":memory:")))); TSQLiteStatement tStatement(spDB); // insert data @@ -52,7 +53,7 @@ TEST(SQLiteStatement, InsertAndRetrieveData) { - TSQLiteDatabasePtr spDB(new TSQLiteDatabase(_T(":memory:"))); + TSQLiteDatabasePtr spDB(new TSQLiteDatabase(PathFromString(_T(":memory:")))); TSQLiteStatement tStatement(spDB); // create schema @@ -74,7 +75,7 @@ TEST(SQLiteStatement, ClearBindings) { - TSQLiteDatabasePtr spDB(new TSQLiteDatabase(_T(":memory:"))); + TSQLiteDatabasePtr spDB(new TSQLiteDatabase(PathFromString(_T(":memory:")))); TSQLiteStatement tStatement(spDB); // create schema