Outdated Visual Studio Solution

This commit is contained in:
Sebastien Rombauts 2012-11-02 12:38:44 +01:00
parent a2446187fa
commit cffc0ae0d0
2 changed files with 10 additions and 2 deletions

View File

@ -185,6 +185,14 @@
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath=".\src\SQLiteC++\Column.cpp"
>
</File>
<File
RelativePath=".\src\SQLiteC++\Column.h"
>
</File>
<File
RelativePath=".\src\SQLiteC++\Database.cpp"
>

View File

@ -72,7 +72,7 @@ int main (void)
// Get a single value result with an easy to use shortcut
std::string value = db.execAndGet("SELECT value FROM test WHERE id=2");
std::cout << "execAndGet=" << value << std::endl;
std::cout << "execAndGet=" << value.c_str() << std::endl;
// Compile a SQL query, containing one parameter (index 1)
SQLite::Statement query(db, "SELECT * FROM test WHERE size > ?");
@ -137,7 +137,7 @@ int main (void)
// make a COPY OF THE result, else it will be destroy before the next line
// (when the underlying temporary Statement and Column objects are destroyed)
std::string value = db.execAndGet("SELECT value FROM test WHERE id=2");
std::cout << "execAndGet=" << value << std::endl;
std::cout << "execAndGet=" << value.c_str() << std::endl;
}
catch (std::exception& e)
{