Re: Use one variable for multiple binds

Jochen Wiedmann <[email protected]>
Newsgroups gmane.comp.db.mysql.perl
Message-ID <[email protected]>
Newbedford.net wrote:
> I dont know if this is possible.
> when calling execute with one variable that holds multiple placeholders.
> 
> Similar to this.
> $dbh->execute($variable)
> the $variable holds multiple values ie..
> $variable="bindinfo1,bindinfo2"

Hopefully, this will never be the case. IMO, it is completely up to you, 
to implement the logic, if, and when, to apply something as simple as

   my @vars;
   if (hasMultipleVars($variable)) {
	@vars = split(/,/, $variable);
   } else {
	@vars = ($variable);
   }

If you disagree, I'd be interested to learn, how you suggest the drivers
implementation of hasMultipleVars($variable).

Jochen

-- 
http://lilypie.com/baby1/050423/1/5/1/+1

-- 
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe:    http://lists.mysql.com/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.