upgraded SQlite to 3.5.5; improved samples

This commit is contained in:
Guenter Obiltschnig 2008-02-03 14:01:30 +00:00
parent 711699f89d
commit c24a43f27d
5 changed files with 34816 additions and 16849 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
// //
// Binding.cpp // Binding.cpp
// //
// $Id: //poco/1.3/Data/samples/Binding/src/Binding.cpp#1 $ // $Id: //poco/1.3/Data/samples/Binding/src/Binding.cpp#2 $
// //
// This sample demonstrates the Data library. // This sample demonstrates the Data library.
// //
@ -58,7 +58,7 @@ int main(int argc, char** argv)
}; };
Statement insert(session); Statement insert(session);
insert << "INSERT INTO Person VALUES(:name, :address, :age)", insert << "INSERT INTO Person VALUES(?, ?, ?)",
use(person.name), use(person.name),
use(person.address), use(person.address),
use(person.age); use(person.age);

View File

@ -1,7 +1,7 @@
// //
// Tuple.cpp // Tuple.cpp
// //
// $Id: //poco/1.3/Data/samples/Tuple/src/Tuple.cpp#1 $ // $Id: //poco/1.3/Data/samples/Tuple/src/Tuple.cpp#2 $
// //
// This sample demonstrates the Data library. // This sample demonstrates the Data library.
// //
@ -51,7 +51,7 @@ int main(int argc, char** argv)
people.push_back(Person("Lisa Simpson", "Springfield", 10)); people.push_back(Person("Lisa Simpson", "Springfield", 10));
Statement insert(session); Statement insert(session);
insert << "INSERT INTO Person VALUES(:name, :address, :age)", insert << "INSERT INTO Person VALUES(?, ?, ?)",
use(people), now; use(people), now;
people.clear(); people.clear();

View File

@ -1,7 +1,7 @@
// //
// Binding.cpp // Binding.cpp
// //
// $Id: //poco/1.3/Data/samples/TypeHandler/src/TypeHandler.cpp#1 $ // $Id: //poco/1.3/Data/samples/TypeHandler/src/TypeHandler.cpp#2 $
// //
// This sample demonstrates the Data library. // This sample demonstrates the Data library.
// //
@ -100,7 +100,7 @@ int main(int argc, char** argv)
}; };
Statement insert(session); Statement insert(session);
insert << "INSERT INTO Person VALUES(:name, :address, :age)", insert << "INSERT INTO Person VALUES(?, ?, ?)",
use(person); use(person);
insert.execute(); insert.execute();