aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-12 14:20:58 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-12 14:20:58 +0200
commit11ac8ff454f780a825a09007e36dd566b1776a5e (patch)
tree2e47b3c6101c53518b63d8d529eae30fa5b8d8ce
parentdf1fdb4f500308adf2fff1a08b2ef62bf5a88de7 (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.
-rw-r--r--odb/mssql/query.hxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/odb/mssql/query.hxx b/odb/mssql/query.hxx
index 94faceb..4cfb802 100644
--- a/odb/mssql/query.hxx
+++ b/odb/mssql/query.hxx
@@ -1590,15 +1590,15 @@ namespace odb
{
query_param_impl (ref_bind<T> r)
: query_param (&r.ref),
- // Default to short data max (700).
- buf_ (r.prec != 0 ? r.prec : 700)
+ // Default to short data max (1024).
+ buf_ (r.prec != 0 ? r.prec : 1024)
{
}
query_param_impl (val_bind<T> v)
: query_param (0),
- // Default to short data max (700).
- buf_ (v.prec != 0 ? v.prec : 700)
+ // Default to short data max (1024).
+ buf_ (v.prec != 0 ? v.prec : 1024)
{
init (v.val);
}
@@ -1644,15 +1644,15 @@ namespace odb
{
query_param_impl (ref_bind<T> r)
: query_param (&r.ref),
- // Precision is in 2-byte chars. Default to short data max (700).
- buf_ (r.prec != 0 ? r.prec * 2 : 700)
+ // Precision is in 2-byte chars. Default to short data max (1024).
+ buf_ (r.prec != 0 ? r.prec * 2 : 1024)
{
}
query_param_impl (val_bind<T> v)
: query_param (0),
- // Precision is in 2-byte chars. Default to short data max (700).
- buf_ (v.prec != 0 ? v.prec * 2 : 700)
+ // Precision is in 2-byte chars. Default to short data max (1024).
+ buf_ (v.prec != 0 ? v.prec * 2 : 1024)
{
init (v.val);
}
@@ -1702,15 +1702,15 @@ namespace odb
{
query_param_impl (ref_bind<T> r)
: query_param (&r.ref),
- // Default to short data max (700).
- buf_ (r.prec != 0 ? r.prec : 700)
+ // Default to short data max (1024).
+ buf_ (r.prec != 0 ? r.prec : 1024)
{
}
query_param_impl (val_bind<T> v)
: query_param (0),
- // Default to short data max (700).
- buf_ (v.prec != 0 ? v.prec : 700)
+ // Default to short data max (1024).
+ buf_ (v.prec != 0 ? v.prec : 1024)
{
init (v.val);
}