summaryrefslogtreecommitdiff
path: root/mssql/types/test.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-12 14:20:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-20 15:45:46 +0200
commit306781934b1ae960c7c4bab900da7b1c9d3ccaac (patch)
tree891e8ed3d1e45144ceccbbc00cca3f2bd2619643 /mssql/types/test.hxx
parent386162fc49b1adb266bbabc735ab28f46b98fa45 (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 'mssql/types/test.hxx')
-rw-r--r--mssql/types/test.hxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/mssql/types/test.hxx b/mssql/types/test.hxx
index a0d261e..7653ec6 100644
--- a/mssql/types/test.hxx
+++ b/mssql/types/test.hxx
@@ -153,7 +153,7 @@ struct object
#pragma db type ("VARCHAR(128)")
std::string svchar_;
- #pragma db type ("CHAR(257)")
+ #pragma db type ("CHAR(1025)")
std::string lchar_;
#pragma db type ("CHARACTER VARYING(8000)")
@@ -173,7 +173,7 @@ struct object
#pragma db type ("NVARCHAR(128)")
std::wstring snvchar_;
- #pragma db type ("NCHAR(129)")
+ #pragma db type ("NCHAR(513)")
std::wstring lnchar_;
#pragma db type ("NATIONAL CHARACTER VARYING(4000)")
@@ -193,8 +193,8 @@ struct object
#pragma db type ("VARBINARY(256)")
std::vector<char> svbin_;
- #pragma db type ("BINARY(257)")
- char lbin_[257];
+ #pragma db type ("BINARY(1025)")
+ char lbin_[1025];
#pragma db type ("BINARY VARYING(8000)")
std::vector<char> lvbin_;