http://bugs.winehq.org/show_bug.cgi?id=6638
Summary: ADODB.Recordset.Fields.Append method fails when last parameter omitted Product: Wine Version: 0.9.24. Platform: All OS/Version: Linux Status: NEW Keywords: source, conformance Severity: minor Priority: P2 Component: wine-ole AssignedTo: wine-bugs@winehq.org ReportedBy: a_villacis@palosanto.com
Visual Basic application instantiates an ADODB.Recordset with late binding (say, with the CreateObject function). The ADODB.Recordset object has a Fields member, which is a collection of Field objects. The Fields Member has (according to the docs) an Append member to add a new Field object. The documented signature is:
ADODB.Recordset.Fields.Append Name As String, Type As DataTypeEnum, DefinedSize As ADO_LONGPTR, Attrib As ADODB.FieldAttributeEnum, FieldValue As Variant
The last three parameters are supposed to be optional.
With builtin oleaut32, the bug is as follows:
Works correctly: Append "fieldName", adVarChar, 128, adFldUnspecified, Empty Throws exception: Append "numeroRucB", adVarChar, 128, adFldUnspecified
With native oleaut32 (WinXP), both calls work correctly.