Exception - Generated GetAuditRecords() table has varbinary(max)

May 19, 2011 at 4:16 PM

It appears that there is a bug in ReadFromBytesArray when an audited table contains a varbinary column

Line 15 of that function reads;

count = dataReader.GetBytes(1, startIndex, outbyte, 0, bufferSize);

I believe it should read

count = dataReader.GetBytes(ordinal, startIndex, outbyte, 0, bufferSize);

 

I have submitted a work item 6672 I believe that details this issue, if more information is required let me know!

 

Steve

Coordinator
May 19, 2011 at 8:22 PM

Thank you. You are correct. This will be corrected in then next version.