Re: Calling a PostgreSQL function via DBI
- From: christian.stalp@xxxxxx (Christian Stalp)
- Date: Wed, 22 Feb 2006 15:34:24 +0100 (MET)
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
.
- References:
- Re: Calling a PostgreSQL function via DBI
- From: Christian Stalp
- Re: Calling a PostgreSQL function via DBI
- Prev by Date: Re: Calling a PostgreSQL function via DBI
- Next by Date: Re: Calling a PostgreSQL function via DBI
- Previous by thread: Re: Calling a PostgreSQL function via DBI
- Next by thread: Re: Calling a PostgreSQL function via DBI
- Index(es):