fix case when one-column primary key is not rowid