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 //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) }); 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 int nCurrentColumnPointer = 1;//start at 1
//INSERT REMAINING FIELDS FROM TEMPLATE INTO THE RETURN ROWS LIST //INSERT REMAINING FIELDS FROM TEMPLATE INTO THE RETURN ROWS LIST
@@ -519,13 +519,13 @@ namespace AyaNova.Biz
AyaFieldData AyaField = new AyaFieldData(); AyaFieldData AyaField = new AyaFieldData();
AyaField.v = dr.GetValue(nCurrentColumnPointer); AyaField.v = dr.GetValue(nCurrentColumnPointer);
nCurrentColumnPointer++;
if (f.SqlIdColumnName != null)//skip over df column id, it's not there if (f.SqlIdColumnName != null)//skip over df column id, it's not there
{ {
AyaField.i = dr.GetInt64(nCurrentColumnPointer); AyaField.i = dr.GetInt64(nCurrentColumnPointer);
nCurrentColumnPointer++; nCurrentColumnPointer++;
} }
row.Add(AyaField); row.Add(AyaField);
} }
rows.Add(row); rows.Add(row);