mirror of
https://github.com/cuberite/SQLiteCpp.git
synced 2025-08-04 09:46:02 -04:00
Linux compilation : remove(filename) instead of std::remove(filename)
This commit is contained in:
parent
dce8466f1e
commit
3ef58a7e0c
@ -11,6 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include "stdio.h"
|
||||||
|
|
||||||
#include "../SQLiteC++/Database.h"
|
#include "../SQLiteC++/Database.h"
|
||||||
#include "../SQLiteC++/Statement.h"
|
#include "../SQLiteC++/Statement.h"
|
||||||
@ -127,16 +128,15 @@ int main (void)
|
|||||||
db.exec("CREATE TABLE test (id INTEGER PRIMARY KEY, value TEXT)");
|
db.exec("CREATE TABLE test (id INTEGER PRIMARY KEY, value TEXT)");
|
||||||
|
|
||||||
int nb = db.exec("INSERT INTO test VALUES (NULL, \"test\")");
|
int nb = db.exec("INSERT INTO test VALUES (NULL, \"test\")");
|
||||||
std::cout << "INSERT INTO test VALUES (NULL, \"test\")\", returned " << nb << std::endl;
|
std::cout << "INSERT INTO test VALUES (NULL, \"test\")\", returned " << nb << std::endl;
|
||||||
|
|
||||||
db.exec("DROP TABLE test");
|
db.exec("DROP TABLE test");
|
||||||
}
|
}
|
||||||
catch (std::exception& e)
|
catch (std::exception& e)
|
||||||
{
|
{
|
||||||
std::cout << "SQLite exception: " << e.what() << std::endl;
|
std::cout << "SQLite exception: " << e.what() << std::endl;
|
||||||
}
|
}
|
||||||
std::remove("test.db3");
|
remove("test.db3");
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user