diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-12 14:16:13 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-20 15:43:46 +0200 |
commit | 557d156ec9c45ed105f7213e1748dc4aad78ebb2 (patch) | |
tree | 0b8082b8548bdc1ee261833dcd052cb0a8c30b5a /odb/relational/mssql | |
parent | 06b889850144910f1f908fc87f78114bde920596 (diff) |
Customize generated pointer column wrapper ctor
For SQL Server we need to be able to pass precision/scale.
Diffstat (limited to 'odb/relational/mssql')
-rw-r--r-- | odb/relational/mssql/common.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/odb/relational/mssql/common.cxx b/odb/relational/mssql/common.cxx index 3112c2d..3f5cf74 100644 --- a/odb/relational/mssql/common.cxx +++ b/odb/relational/mssql/common.cxx @@ -551,6 +551,18 @@ namespace relational } virtual void + column_ctor (string const& type, string const& base) + { + os << type << " (const char* t," << endl + << "const char* c," << endl + << "unsigned short p = 0," << endl + << "unsigned short s = 0xFFFF)" << endl + << " : " << base << " (t, c, p, s)" + << "{" + << "}"; + } + + virtual void column_ctor_extra (semantics::data_member& m) { // For some types we need to pass precision and scale. |