GitHub user SuJinpei opened a pull request:
https://github.com/apache/trafodion/pull/1671
[TRAFODION-3710] odb don't report error message.
**root cause:** SQLGetDiagRec expected an error message buffer length
parameter which type is signed short, but odb defined a macro LINE_CHUNK as
51200 and this macro will be pass to SQLGetDiagRec as error message buffer
length parameter, 51200 is a negative value for signed short, so no error
message returned.
**solution:** define a new macro ERR_MSG_LEN with a small value for
SQLGetDiagRec function.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/SuJinpei/incubator-trafodion traf-3710
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafodion/pull/1671.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1671
----
commit ad4d844be6bf85ad264beb8b1f9070df1cfde102
Author: SuJinpei <873118042@...>
Date: 2018-07-31T08:00:34Z
TRAFODION-3710
----
---