Thread Dynamisches Binden bei DBI (15 answers)
Opened by renee at 2005-09-13 12:32

pq
 2005-09-14 14:06
#33534 #33534
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
[quote=renee,14.09.2005, 09:30]
Code: (dl )
    $sth->bind_param(1,$var,&{"DBI::$coltype"});


With that code the script dies with the following errormessage:
Code: (dl )
Usage: SQL_LONGVARCHAR() at DbiTest line 21
[/quote]
Code: (dl )
    $sth->bind_param(1,$var,&{"DBI::$coltype"}());
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread Dynamisches Binden bei DBI