This commit is contained in:
2020-01-20 23:39:51 +00:00
parent 5937963af0
commit d3310d2120

View File

@@ -508,7 +508,7 @@ namespace AyaNova.Biz
//first column is always the underlying id value of the default record to open for this row in the client ui
row.Add(new AyaFieldData() { v = dr.GetInt64(0) });
//GetOrdinal is flakey in npgsql so just going by field definition and ordinal numerically
//GetOrdinal by name is flakey in npgsql so just going by field definition and ordinal numerically
int nCurrentColumnPointer = 1;//start at 1
//INSERT REMAINING FIELDS FROM TEMPLATE INTO THE RETURN ROWS LIST
@@ -519,13 +519,13 @@ namespace AyaNova.Biz
AyaFieldData AyaField = new AyaFieldData();
AyaField.v = dr.GetValue(nCurrentColumnPointer);
nCurrentColumnPointer++;
if (f.SqlIdColumnName != null)//skip over df column id, it's not there
{
AyaField.i = dr.GetInt64(nCurrentColumnPointer);
nCurrentColumnPointer++;
}
row.Add(AyaField);
}
rows.Add(row);