From d01ec34c62ebae294de49aea92bb0496188e28bb Mon Sep 17 00:00:00 2001
From: Boris Kolpackov <boris@codesynthesis.com>
Date: Wed, 2 Nov 2011 15:58:39 +0200
Subject: Include default mapping in prologue instead of epilogue

This will allow the user to customize the mapping.
---
 odb/qt/basic-mysql.options      | 5 ++++-
 odb/qt/basic-pgsql.options      | 5 ++++-
 odb/qt/basic-sqlite.options     | 5 ++++-
 odb/qt/date-time-mysql.options  | 5 ++++-
 odb/qt/date-time-pgsql.options  | 5 ++++-
 odb/qt/date-time-sqlite.options | 5 ++++-
 6 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/odb/qt/basic-mysql.options b/odb/qt/basic-mysql.options
index adb3529..0be19f2 100644
--- a/odb/qt/basic-mysql.options
+++ b/odb/qt/basic-mysql.options
@@ -5,7 +5,10 @@
 
 --profile qt/version
 
---odb-epilogue '#include <odb/qt/basic/mysql/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/basic/mysql/default-mapping.hxx>'
 
 --hxx-prologue '#include <odb/qt/basic/mysql/qstring-traits.hxx>'
 --hxx-prologue '#include <odb/qt/basic/mysql/qbyte-array-traits.hxx>'
diff --git a/odb/qt/basic-pgsql.options b/odb/qt/basic-pgsql.options
index 1940dc6..238bc42 100644
--- a/odb/qt/basic-pgsql.options
+++ b/odb/qt/basic-pgsql.options
@@ -5,7 +5,10 @@
 
 --profile qt/version
 
---odb-epilogue '#include <odb/qt/basic/pgsql/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/basic/pgsql/default-mapping.hxx>'
 
 --hxx-prologue '#include <odb/qt/basic/pgsql/qstring-traits.hxx>'
 --hxx-prologue '#include <odb/qt/basic/pgsql/qbyte-array-traits.hxx>'
diff --git a/odb/qt/basic-sqlite.options b/odb/qt/basic-sqlite.options
index 4a5a082..7251482 100644
--- a/odb/qt/basic-sqlite.options
+++ b/odb/qt/basic-sqlite.options
@@ -5,7 +5,10 @@
 
 --profile qt/version
 
---odb-epilogue '#include <odb/qt/basic/sqlite/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/basic/sqlite/default-mapping.hxx>'
 
 --hxx-prologue '#include <odb/qt/basic/sqlite/qstring-traits.hxx>'
 --hxx-prologue '#include <odb/qt/basic/sqlite/qbyte-array-traits.hxx>'
diff --git a/odb/qt/date-time-mysql.options b/odb/qt/date-time-mysql.options
index 02bebf7..8073903 100644
--- a/odb/qt/date-time-mysql.options
+++ b/odb/qt/date-time-mysql.options
@@ -5,7 +5,10 @@
 
 --profile qt/version
 
---odb-epilogue '#include <odb/qt/date-time/mysql/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/date-time/mysql/default-mapping.hxx>'
 
 --hxx-prologue '#include <odb/qt/date-time/mysql/qdate-traits.hxx>'
 --hxx-prologue '#include <odb/qt/date-time/mysql/qtime-traits.hxx>'
diff --git a/odb/qt/date-time-pgsql.options b/odb/qt/date-time-pgsql.options
index a637b60..f7f86e5 100644
--- a/odb/qt/date-time-pgsql.options
+++ b/odb/qt/date-time-pgsql.options
@@ -5,7 +5,10 @@
 
 --profile qt/version
 
---odb-epilogue '#include <odb/qt/date-time/pgsql/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/date-time/pgsql/default-mapping.hxx>'
 
 --hxx-prologue '#include <odb/qt/date-time/pgsql/qdate-traits.hxx>'
 --hxx-prologue '#include <odb/qt/date-time/pgsql/qtime-traits.hxx>'
diff --git a/odb/qt/date-time-sqlite.options b/odb/qt/date-time-sqlite.options
index c500499..750405c 100644
--- a/odb/qt/date-time-sqlite.options
+++ b/odb/qt/date-time-sqlite.options
@@ -5,7 +5,10 @@
 
 --profile qt/version
 
---odb-epilogue '#include <odb/qt/date-time/sqlite/default-mapping.hxx>'
+# Include the default mapping in prologue instead of epilogue to
+# allow the user to override the default mapping.
+#
+--odb-prologue '#include <odb/qt/date-time/sqlite/default-mapping.hxx>'
 
 --hxx-prologue '#include <odb/qt/date-time/sqlite/qdate-traits.hxx>'
 --hxx-prologue '#include <odb/qt/date-time/sqlite/qtime-traits.hxx>'
-- 
cgit v1.1