diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-29 10:03:36 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-10-29 10:03:36 +0200 |
commit | f8677f8bfaa68e6714f4af7b030d0f365e60b918 (patch) | |
tree | 5f64e69bd7261348d966b80d0433f6bd34be76f2 /odb/include.cxx | |
parent | 938d136b09b868f633574c722d48c2953dde1be4 (diff) |
Add support for database prefixes in command line interface
Diffstat (limited to 'odb/include.cxx')
-rw-r--r-- | odb/include.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/odb/include.cxx b/odb/include.cxx index c842010..a921451 100644 --- a/odb/include.cxx +++ b/odb/include.cxx @@ -169,6 +169,7 @@ namespace { string f (file); size_t n (f.size ()); + database db (options_.database ()[0]); // Check if we have a synthesized prologue/epilogue fragment. // @@ -201,18 +202,18 @@ namespace size_t size (options_.odb_prologue ().size ()); if (n < size) - ss << options_.odb_prologue ()[n]; + ss << options_.odb_prologue ()[db][n]; else - f = options_.odb_prologue_file ()[n - size]; + f = options_.odb_prologue_file ()[db][n - size]; } else { size_t size (options_.odb_epilogue ().size ()); if (n < size) - ss << options_.odb_epilogue ()[n]; + ss << options_.odb_epilogue ()[db][n]; else - f = options_.odb_epilogue_file ()[n - size]; + f = options_.odb_epilogue_file ()[db][n - size]; } if (f.empty ()) |