Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
my $insql = " INSERT INTO PROGTBL (column names...) VALUES ( ?, ?, ?) RETURNING PROGID INTO :id "; my $sth = $self->dbh->prepare($insql) or die "Can't prepair statement: + $self->DBI::errstr"; $sth->bind_param_inout(":id", \my $new_id, 99); $sth->execute( $foo, $bar, $baz ) or die "Can't execute statement: $se +lf->DBI::errstr";
I'm geting th error
DBI error Can't mix placeholder styles (:foo/?)
I don't understand how to fix it. Any ideas?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBI error Can't mix placeholder styles (:foo/?)
by mje (Curate) on Jun 21, 2011 at 09:21 UTC | |
by Anonymous Monk on Jun 21, 2011 at 09:37 UTC | |
by mje (Curate) on Jun 21, 2011 at 09:44 UTC | |
by Anonymous Monk on Jun 21, 2011 at 10:00 UTC | |
by mje (Curate) on Jun 21, 2011 at 10:05 UTC |