diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-12 14:20:58 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2012-01-20 15:43:46 +0200 |
commit | ed9c3239f4a795cd5778a4f76788b9980177b846 (patch) | |
tree | 3135a007840707f7a35700f39e8e79f9fd9ad061 /odb/relational | |
parent | 557d156ec9c45ed105f7213e1748dc4aad78ebb2 (diff) |
Change short data max and default string sizes for SQL Server
Now the default short data max is 1024, non-key string size is 512
characters, and key string size is 256 characters. Also add default
mapping for std::wstring.
Diffstat (limited to 'odb/relational')
-rw-r--r-- | odb/relational/mssql/context.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/odb/relational/mssql/context.cxx b/odb/relational/mssql/context.cxx index c9ff6f5..7832c24 100644 --- a/odb/relational/mssql/context.cxx +++ b/odb/relational/mssql/context.cxx @@ -49,7 +49,8 @@ namespace relational {"float", "REAL", 0}, {"double", "FLOAT", 0}, - {"::std::string", "VARCHAR(8000)", "VARCHAR(900)"}, + {"::std::string", "VARCHAR(512)", "VARCHAR(256)"}, + {"::std::wstring", "NVARCHAR(512)", "NVARCHAR(256)"}, {"::size_t", "BIGINT", 0}, {"::std::size_t", "BIGINT", 0}, |