summaryrefslogtreecommitdiff
path: root/odb/mysql/inline.cxx
diff options
context:
space:
mode:
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 ()
//