Hello everybody,

I'm trying to do a simple INSERT into a PostgreSQL database with the
following perl DBI script: 


$dbh = DBI->connect("dbi:PgPP:dbname=$dbname",$username,$password);
$sth = $dbh -> prepare("INSERT INTO syslog (host, mensaje) VALUES (?,?)") or
die $dbh->errstr;
$sth->execute( $host, $mensaje ) or die $dbh ->errstr;
$dbh -> disconnect;

And I get this error...

DBD::PgPP::st execute failed: ERROR:  array_in: Need to specify dimension
ERROR:  array_in: Need to specify dimension

I think it�s quite simple but I can't guess where the error is... Can you
help me?

Regards,

Ruben

Reply via email to