From 64cc9e9f0ed1ac6742ce9d5b370bf7de7b1cb461 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Jan 2012 10:30:22 +0200 Subject: Work around SQL Server 2005 bug with long data and OUTPUT clause --- odb/options.cli | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) (limited to 'odb/options.cli') 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) + { + "", + "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 { "", - "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) { "", "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." }; // -- cgit v1.1