diff options
Diffstat (limited to 'odb/relational/schema.hxx')
-rw-r--r-- | odb/relational/schema.hxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/odb/relational/schema.hxx b/odb/relational/schema.hxx index 69e8089..fcb176f 100644 --- a/odb/relational/schema.hxx +++ b/odb/relational/schema.hxx @@ -410,8 +410,10 @@ namespace relational virtual void null (sema_rel::column& c) { - if (!c.null ()) - os << " NOT NULL"; + // Specify both cases explicitly for better readability, + // especially in ALTER COLUMN clauses. + // + os << (c.null () ? " NULL" : " NOT NULL"); } virtual void |