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-05-27 09:34:35 -0400
commitb764ed6bad7fc2de2a8de54271e21971f3c5196c (patch)
treef20f52de50e4cd0078140b02904789ffd25eacc1 /odb/validator.cxx
parentbadf755013a76b4eaf955fb5a3e9a6361e1b52dc (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 77ad874..8ace9a0 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 " <<