summaryrefslogtreecommitdiff
path: root/odb/relational/oracle
diff options
context:
space:
mode:
Diffstat (limited to 'odb/relational/oracle')
-rw-r--r--odb/relational/oracle/schema.cxx25
1 files changed, 25 insertions, 0 deletions
diff --git a/odb/relational/oracle/schema.cxx b/odb/relational/oracle/schema.cxx
index 8a10d2e..2eb44d6 100644
--- a/odb/relational/oracle/schema.cxx
+++ b/odb/relational/oracle/schema.cxx
@@ -53,6 +53,31 @@ namespace relational
entry<schema_emitter> schema_emitter_;
//
+ // File.
+ //
+
+ struct schema_file: relational::schema_file, context
+ {
+ schema_file (const base& x): base (x) {}
+
+ virtual void
+ pre ()
+ {
+ os << "SET FEEDBACK OFF;" << endl
+ << "WHENEVER SQLERROR EXIT FAILURE;" << endl
+ << "WHENEVER OSERROR EXIT FAILURE;" << endl
+ << endl;
+ }
+
+ virtual void
+ post ()
+ {
+ os << "EXIT;" << endl;
+ }
+ };
+ entry<schema_file> schema_file_;
+
+ //
// Drop.
//