ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Relational Modeling of Biological Data: Trees and Graphs
Subject:   fetch() without execute() error in Example 1
Date:   2006-02-06 10:55:01
From:   amackey
Response to: fetch() without execute() error in Example 1

The $children statement needs an additional clause, as follows:



my $children = $dbh->prepare("SELECT id
FROM taxon
WHERE parent_id = ?
AND id <> parent_id");