Re: Calling a PostgreSQL function via DBI




Thank you Greg,
I allready solf it. First I changed the code this way:
my $arg1 = $cookieValue . "::numeric";
my $arg2 = $suchprofil_name . "::text";

$result = $dbh->prepare ( "SELECT neues_suchprofil ( $arg1, '$arg2' ) " )
or
die "Vorbereitung nicht durchfuehrbar!\n";
$result->execute() or die "Abfrage nicht ausfuehrbar -suchprofil!
$DBI::errstr\n";
$result->finish();


And here comes an update:

$arg1 = $cookieValue . "::numeric";

$result = $dbh->prepare ( "SELECT neues_suchprofil ( $arg1,
'$suchprofil_name' ) " ) or die "Vorbereitung nicht durchfuehrbar!\n";
otherwise I put the name concated with the '::text' into the database, and
this is not what I want ;-)

Thank you.

Gruss Christian

--
Telefonieren Sie schon oder sparen Sie noch?
NEU: GMX Phone_Flat http://www.gmx.net/de/go/telefonie
.