fixed bug in MS SQL driver (DrvBind call) (issue #NX-1284)
authorVictor Kirhenshtein <victor@netxms.org>
Thu, 10 Aug 2017 16:17:51 +0000 (19:17 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Thu, 10 Aug 2017 16:17:51 +0000 (19:17 +0300)
ChangeLog
src/db/dbdrv/mssql/mssql.cpp
src/install/windows/netxms-x64-minimal.iss
src/install/windows/setup.iss

index 1cf0312..49b2965 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,7 +12,7 @@
        - New attribute "ipAddressList" for class "Interface"
 - Management console:
        - Improved status map
-- Fixed issues: NX-930, NX-1263, NX-1272, NX-1273, NX-1278, NX-1281
+- Fixed issues: NX-930, NX-1263, NX-1272, NX-1273, NX-1278, NX-1281, NX-1284
 
 *
 * 2.1
index 1f884f9..c45fc67 100644 (file)
@@ -391,8 +391,7 @@ extern "C" void EXPORT DrvBind(MSSQL_STATEMENT *stmt, int pos, int sqlType, int
                default:
                        return; // Invalid call
        }
-       SQLBindParameter(stmt->handle, pos, SQL_PARAM_INPUT, odbcCType[cType], odbcSqlType[sqlType],
-                        (cType == DB_CTYPE_STRING) ? length : 0, 0, sqlBuffer, 0, NULL);
+       SQLBindParameter(stmt->handle, pos, SQL_PARAM_INPUT, odbcCType[cType], odbcSqlType[sqlType], length, 0, sqlBuffer, 0, NULL);
 }
 
 /**
index 0a397ad..d6d9edb 100644 (file)
@@ -1,7 +1,7 @@
 ; Installation script for NetXMS Server / Windows x64
 
 #include "setup.iss"
-OutputBaseFilename=netxms-2.1-32-x64-minimal
+OutputBaseFilename=netxms-2.1-79-x64-minimal
 ArchitecturesInstallIn64BitMode=x64
 ArchitecturesAllowed=x64
 
index 60b45fc..75ace88 100644 (file)
@@ -1,7 +1,7 @@
 [Setup]
 AppName=NetXMS
-AppVerName=NetXMS 2.1-32
-AppVersion=2.1-32
+AppVerName=NetXMS 2.1-79
+AppVersion=2.1-79
 AppPublisher=Raden Solutions
 AppPublisherURL=http://www.radensolutions.com
 AppSupportURL=http://www.netxms.org