Impaired sexual function in patients with borderline personality disorder is determined by history of sexual abuse.