special handling for MySQL autoincrement columns which must be
primary keys