Fixed a bug that does not add SQL parameter for PK columns.