Thank you for your reply. It was much more useful than the flaming going on in the chatterbox. The solution is as follows:
1. Change the sql, so that there are 3 placeholders in the values clause:
my $sql = qq {
INSERT INTO peck_test
VALUES ( ?,?,? )
RETURNING my_id INTO ?
};
2. Change the binding as follows:
$sth->bind_param (1, $id, SQL_NUMERIC);
$sth->bind_param (2, $name, SQL_VARCHAR);
$sth->bind_param (3, $desc, SQL_VARCHAR);
$sth->bind_param_inout(4, \$id, SQL_NUMERIC);
Thanks again,
Akoya |