diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-26 11:43:10 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-04-26 11:43:10 +0200 |
commit | f85d634ac895a6ad937d8bc0861cc483d07da1cb (patch) | |
tree | a165a322380ae69c21bf2e3c48e1c6738d971a76 /odb/semantics/relational/changelog.cxx | |
parent | 1bcf16e4a89a09346813c1c47e75da99f74a65fe (diff) |
Add database name to changelog
Diffstat (limited to 'odb/semantics/relational/changelog.cxx')
-rw-r--r-- | odb/semantics/relational/changelog.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/odb/semantics/relational/changelog.cxx b/odb/semantics/relational/changelog.cxx index fb304ca..73dac77 100644 --- a/odb/semantics/relational/changelog.cxx +++ b/odb/semantics/relational/changelog.cxx @@ -29,6 +29,8 @@ namespace semantics if (p.attribute<unsigned int> ("version") != 1) throw parsing (p, "unsupported changelog format version"); + database_ = p.attribute ("database"); + // Because things are stored in the reverse order, first save the // changesets as XML chunks and then re-parse them in the reverse // order. We have to do it this way so that we can do lookups along @@ -125,6 +127,7 @@ namespace semantics { s.start_element (xmlns, "changelog"); s.namespace_decl (xmlns, ""); + s.attribute ("database", database_); s.attribute ("version", 1); // Format version. // For better readability serialize things in reverse order so that |