From 458779f49a789e403cf108ac04b6fa035cb06810 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 9 Apr 2013 10:04:37 +0200 Subject: Enable --generate-schema-only option for separate schema format --- odb/validator.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'odb/validator.cxx') diff --git a/odb/validator.cxx b/odb/validator.cxx index c6b9c86..f33962b 100644 --- a/odb/validator.cxx +++ b/odb/validator.cxx @@ -967,11 +967,10 @@ validate (options const& ops, // Validate options. // if (ops.generate_schema_only () && - (ops.schema_format ()[db].size () != 1 || - *ops.schema_format ()[db].begin () != schema_format::sql)) + ops.schema_format ()[db].count (schema_format::embedded)) { cerr << "error: --generate-schema-only is only valid when generating " << - "schema as a standalone SQL file" << endl; + "schema as a standalone SQL or separate C++ file" << endl; valid = false; } -- cgit v1.1