infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
ODBC Issues
System
Originally posted by Aaron Markley
Hello,
Our site has been using the ODBC module for connecting to an MSSQL database for several years now.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Aaron,
We have only been using Data Integrator in Productin for a few months but have not experienced what you are experiencing.
Having said that, I need to also mention we are not directly affecting the target database (SQL insert, etc.) instead, we invoke a Stored Procedure that does all of the DB work so this might be a case of Apples and Oranges.
Charlie Bursell
See if this applies. From 5.6 release notes
8.2.1 SQLExecDirect issues
ODBC programs using SQLExecDirect on statements with bound variables may crash the engine.
The problem is related to an incorrect row set size. The row set size is specified with:
odbc SQLSetStmtAttr $hstmt SQL_ATTR_PARAMSET_SIZE 1 0
Where 1 is the size of the row set. If the size is 1, the bound variables are assumed to be scalars. If the size is greater than 1, the variables are assumed to be arrays.
Using the wrong size will attempt to bind to a non-existent variable and cause a crash.
The size should always default to 1 but there may be cases where it does not. If the SQLExecDirect statement has no row size set, force the row set size to 1 before executing the SQLExecDirect command.
To work around the issue, force the row set size to 1 with the SQLSetStmtAttr statement shown above, before using the statement with bound variables.
System
Originally posted by Aaron Markley
Adding the indicated statement (odbc SQLSetStmtAttr $hstmt SQL_ATTR_PARAMSET_SIZE 1 0) prior to the SQLExecDirect command doesn't appear to resolve these malloc errors we are seeing.