*** ./msql/msqldb.c~ Wed Oct 18 03:43:33 1995 --- ./msql/msqldb.c Thu Oct 26 13:59:44 1995 *************** *** 4214,4219 **** --- 4349,4364 ---- if (key) { + /* check for autokey generation */ + if (key->type == INT_TYPE && key->value->nullVal) { + int freeKey = cacheEntry->numRows; + key->value->nullVal = 0; + key->value->type = INT_TYPE; + do { + freeKey++; + key->value->val.intVal = freeKey; + } while (readKey(cacheEntry,key) != NO_POS); + } if (readKey(cacheEntry,key) != NO_POS) { sprintf(errMsg,KEY_UNIQ_ERROR, key->name);