mirror of
https://github.com/pocoproject/poco.git
synced 2025-04-19 07:47:09 +02:00
upgraded SQlite to 3.5.5; improved samples
This commit is contained in:
parent
711699f89d
commit
c24a43f27d
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -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);
|
||||||
|
@ -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();
|
||||||
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user