needLastInsertID method

TField? needLastInsertID()

Implementation

TField? needLastInsertID() {
  TField? result;
  if (sqlConnection!.connOptions.contains(TConnOption.sqLastInsertID)) {
    var i = 0;
    while (result == null && i < fields.count) {
      result = fields[i];
      if (result.dataType != TFieldType.ftAutoInc || !result.isNull) {
        result = null;
      }
      i++;
    }
  }
  return result;
}