On Tuesday 01 August 2006 17:04, Greg Sabino Mullane wrote:
> You need to tell DBI to import the SQL type constants. This is done by
> replacing 'use DBI;' above with:
>
> use DBI qw(:sql_types);
Do I have to do something similar to get the below to work?
use strict;
my $insertid;
...
eval {
#some insertion
$insertid = $dbh->{'mysql_insertid'};
};
...
At the moment $insertid is always set to 0.
Thanks!
--
Bjørge Solli - Office:+47 55205847
Mohn-Sverdrupsenteret, Nansensenteret, Høyteknologisenteret T47
Thormöhlensgate 47, 5006 Bergen, Norway - www.nersc.no
Google Earth: www.nersc.no/GE - TOPAZ: topaz.nersc.no
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>