aboutsummaryrefslogtreecommitdiff
path: root/odb/validator.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-03-22 13:53:45 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-04-10 18:46:44 +0200
commit289c09c718c00b364cc2cb156ac1f8b402e4d2d3 (patch)
treeb634d60ff2e5dabf92b6cc84ae5a0098f1304c2f /odb/validator.cxx
parent0fc39391cd7b5a5f0b362bed6c21e4c642a0accc (diff)
Fix option querying bug
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 57cca4a..c6b9c86 100644
--- a/odb/validator.cxx
+++ b/odb/validator.cxx
@@ -967,7 +967,7 @@ validate (options const& ops,
// Validate options.
//
if (ops.generate_schema_only () &&
- (ops.schema_format ().size () != 1 ||
+ (ops.schema_format ()[db].size () != 1 ||
*ops.schema_format ()[db].begin () != schema_format::sql))
{
cerr << "error: --generate-schema-only is only valid when generating " <<