aboutsummaryrefslogtreecommitdiff
path: root/odb/options.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-01-20 10:30:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-01-20 15:43:46 +0200
commit64cc9e9f0ed1ac6742ce9d5b370bf7de7b1cb461 (patch)
treeade429bd15d070efc66386d455745cb64ce8af22 /odb/options.cli
parent89c06fb9ce3470c7a1b55cc906f2165791917957 (diff)
Work around SQL Server 2005 bug with long data and OUTPUT clause
Diffstat (limited to 'odb/options.cli')
-rw-r--r--odb/options.cli26
1 files changed, 20 insertions, 6 deletions
diff --git a/odb/options.cli b/odb/options.cli
index 4287231..fedc00a 100644
--- a/odb/options.cli
+++ b/odb/options.cli
@@ -430,12 +430,24 @@ class options
// SQL Server-specific options.
//
+ ::mssql_version --mssql-server-version (10, 0)
+ {
+ "<v>",
+ "Specify the minimum SQL Server server version with which the generated
+ C++ code will be used. This information is used to enable
+ version-specific optimizations and workarounds in the generated C++
+ code. The version must be in the \c{\i{major}\b{.}\i{minor}} form, for
+ example, \cb{9.0} (SQL Server 2005), \cb{10.5} (2008R2), or \cb{11.0}
+ (2012). If this options is not specified, then 10.0 (SQL Server 2008)
+ or later is assumed."
+ };
+
unsigned int --mssql-short-limit = 1024
{
"<size>",
- "Specify the short data size limit. If character, national character,
- or binary data type has a maximum length (in bytes) less than this
- limit, then it is treated as \i{short data}, otherwise it is \i{long
+ "Specify the short data size limit. If character, national character, or
+ binary data type has a maximum length (in bytes) less than or equal to
+ this limit, then it is treated as \i{short data}, otherwise it is \i{long
data}. For short data ODB pre-allocates an intermediate buffer of
the maximum size and binds it directly to a parameter or result
column. This way the underlying API (ODBC) can read/write directly
@@ -466,13 +478,15 @@ class options
// Oracle-specific options.
//
- ::oracle_version --oracle-client-version
+ ::oracle_version --oracle-client-version (10, 1)
{
"<v>",
"Specify the minimum Oracle client library (OCI) version with which the
generated C++ code will be linked. This information is used to enable
- version-specific optimizations in the generated C++ code. The version
- must be in the \c{\i{major}\b{.}\i{minor}} form, for example, \cb{11.2}."
+ version-specific optimizations and workarounds in the generated C++
+ code. The version must be in the \c{\i{major}\b{.}\i{minor}} form,
+ for example, \cb{11.2}. If this options is not specified, then 10.1
+ or later is assumed."
};
//