From f8677f8bfaa68e6714f4af7b030d0f365e60b918 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 29 Oct 2012 10:03:36 +0200 Subject: Add support for database prefixes in command line interface --- odb/validator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'odb/validator.cxx') 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; -- cgit v1.1