fix Pgsql exception : Boolean cast for isRead parameter