summaryrefslogtreecommitdiff
path: root/odb/mysql/inline.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2010-08-13 15:34:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2010-08-13 15:34:58 +0200
commit5e17d609ae59dc07514e2af945db05be05db968c (patch)
treeed107da1fe7585a3c0285fa48f5414052f2d70e2 /odb/mysql/inline.cxx
parentead623bfdd2004988f13d7cade7deaea1b71f7e8 (diff)
Do not generate query support code by default
Add the --generate-query option to explicitly request this functionality.
Diffstat (limited to 'odb/mysql/inline.cxx')
-rw-r--r--odb/mysql/inline.cxx37
1 files changed, 20 insertions, 17 deletions
diff --git a/odb/mysql/inline.cxx b/odb/mysql/inline.cxx
index 0924077..1bb5fef 100644
--- a/odb/mysql/inline.cxx
+++ b/odb/mysql/inline.cxx
@@ -47,25 +47,28 @@ namespace mysql
// query_type
//
- os << "inline" << endl
- << traits << "::query_type::" << endl
- << "query_type ()"
- << "{"
- << "}";
+ if (options.generate_query ())
+ {
+ os << "inline" << endl
+ << traits << "::query_type::" << endl
+ << "query_type ()"
+ << "{"
+ << "}";
- os << "inline" << endl
- << traits << "::query_type::" << endl
- << "query_type (const std::string& q)" << endl
- << " : query_base_type (q)"
- << "{"
- << "}";
+ os << "inline" << endl
+ << traits << "::query_type::" << endl
+ << "query_type (const std::string& q)" << endl
+ << " : query_base_type (q)"
+ << "{"
+ << "}";
- os << "inline" << endl
- << traits << "::query_type::" << endl
- << "query_type (const query_base_type& q)" << endl
- << " : query_base_type (q)"
- << "{"
- << "}";
+ os << "inline" << endl
+ << traits << "::query_type::" << endl
+ << "query_type (const query_base_type& q)" << endl
+ << " : query_base_type (q)"
+ << "{"
+ << "}";
+ }
// id ()
//