aboutsummaryrefslogtreecommitdiff
path: root/common/section/basics
diff options
context:
space:
mode:
Diffstat (limited to 'common/section/basics')
-rw-r--r--common/section/basics/driver.cxx2
-rw-r--r--common/section/basics/test.hxx6
2 files changed, 4 insertions, 4 deletions
diff --git a/common/section/basics/driver.cxx b/common/section/basics/driver.cxx
index 67e09ef..f34ed90 100644
--- a/common/section/basics/driver.cxx
+++ b/common/section/basics/driver.cxx
@@ -1125,7 +1125,7 @@ main (int argc, char* argv[])
{
using namespace test14;
- object o (123, "\x01\x02\x03\x04\x05");
+ object o (1, 123, "\x01\x02\x03\x04\x05");
{
transaction t (db->begin ());
diff --git a/common/section/basics/test.hxx b/common/section/basics/test.hxx
index c129f3e..0ceb298 100644
--- a/common/section/basics/test.hxx
+++ b/common/section/basics/test.hxx
@@ -458,10 +458,10 @@ namespace test14
#pragma db object
struct object
{
- object (int n_ = 999, const std::string& s_ = "xxx")
- : sb (s_.begin (), s_.end ()), sn (n_), n (n_) {}
+ object (unsigned long id_ = 0, int n_ = 999, const std::string& s_ = "xxx")
+ : id (id_), sb (s_.begin (), s_.end ()), sn (n_), n (n_) {}
- #pragma db id auto
+ #pragma db id
unsigned long id;
#pragma db load(lazy)