You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code in xsqlda_wrapper.cpp has an inconsistency on how it is handling XSQLVAR:
In Resync it does this:
if(dataPtr == NULL)
{
dataPtr = mAllocator.AllocateMemory(1);
dataPtr[0] = 0;
}
In AllocateJavaXsqlvar it does the following:
if(dataPtr == NULL)
dataPtr = mAllocator.AllocateMemory(1);
dataPtr\[0\] = 0;
Notice how in the first case it only assigns 0 to dataPtr[0] if it previously was NULL, while in the other case it will always assign 0 dataPtr[0]. This second case seems to be in error.
Submitted by: @mrotteveel
The code in xsqlda_wrapper.cpp has an inconsistency on how it is handling XSQLVAR:
In Resync it does this:
if(dataPtr == NULL)
{
dataPtr = mAllocator.AllocateMemory(1);
dataPtr[0] = 0;
}
In AllocateJavaXsqlvar it does the following:
if(dataPtr == NULL)
dataPtr = mAllocator.AllocateMemory(1);
Notice how in the first case it only assigns 0 to dataPtr[0] if it previously was NULL, while in the other case it will always assign 0 dataPtr[0]. This second case seems to be in error.
Commits: 38a95d7
The text was updated successfully, but these errors were encountered: