davidl
Joined: 17 Aug 2006 Posts: 27
|
Posted: Tue Oct 31, 2006 11:47 pm Post subject: prevent arraybounds error by null field data |
|
|
odbcresult.d
line 96 would cause arraybounds error when i have some data null
i use m$sql
the following is the hack to prevent this from happening
if (indicator < 0)
{
row.addField(columnNames[i - 1], null, columnTypesName[i - 1], columnTypesNum[i - 1]);
}
else
{
row.addField(columnNames[i - 1], strip(cast(char[])buf[0 .. indicator]), columnTypesName[i - 1], columnTypesNum[i - 1]);
} |
|