diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-11 14:21:52 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-03-21 15:40:00 +0200 |
commit | a6630dff5bf2002c0c133ea6c5e16d8a0a22138f (patch) | |
tree | 64e05f2b2a6e0d602fe2d89bec8698ca9b0b70f4 /odb/relational/schema.cxx | |
parent | 7208e97cabf7c21169a036ae7cf697042984e9cb (diff) |
Create indexes in separate SQL statements
This is more vendor-neutral.
Diffstat (limited to 'odb/relational/schema.cxx')
-rw-r--r-- | odb/relational/schema.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/odb/relational/schema.cxx b/odb/relational/schema.cxx index 0836e03..6afdb32 100644 --- a/odb/relational/schema.cxx +++ b/odb/relational/schema.cxx @@ -36,8 +36,9 @@ namespace relational virtual void post () { - os << ';' << endl - << endl; + if (!first_) // Ignore empty statements. + os << ';' << endl + << endl; } private: |