aboutsummaryrefslogtreecommitdiff
path: root/odb/validator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-10-29 10:03:36 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-10-29 10:03:36 +0200
commitf8677f8bfaa68e6714f4af7b030d0f365e60b918 (patch)
tree5f64e69bd7261348d966b80d0433f6bd34be76f2 /odb/validator.cxx
parent938d136b09b868f633574c722d48c2953dde1be4 (diff)
Add support for database prefixes in command line interface
Diffstat (limited to 'odb/validator.cxx')
-rw-r--r--odb/validator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/odb/validator.cxx b/odb/validator.cxx
index d0b9ee2..5e99114 100644
--- a/odb/validator.cxx
+++ b/odb/validator.cxx
@@ -968,7 +968,7 @@ validate (options const& ops,
//
if (ops.generate_schema_only () &&
(ops.schema_format ().size () != 1 ||
- *ops.schema_format ().begin () != schema_format::sql))
+ *ops.schema_format ()[db].begin () != schema_format::sql))
{
cerr << "error: --generate-schema-only is only valid when generating " <<
"schema as a standalone SQL file" << endl;