From: Martin Bonner Date: 2003-02-19T08:36:01+09:00 Subject: Re: DBI and placeholders Ahh, I see. Thank you. Marty ----- Original Message ----- From: "Gabriel Emerson" Newsgroups: comp.lang.ruby To: "ruby-talk ML" Sent: Tuesday, February 18, 2003 4:49 PM Subject: Re: DBI and placeholders > To make an array expand into across the parameter list for a method, use > the * operator. > sth.execute(*array) > > On Wed, 19 Feb 2003 07:31:36 +0900, Martin Bonner wrote: > > > Hi, > > Is there a way to execute a statement, passing in an array for the > > bind variables? If I use > > > > sth.execute(array[0],array[1],array[2]) > > > > Everything works fine, but if I just use > > > > sth.execute(array) > > > > I get a 'not all variables bound' error. Am I missing something? > > > > > > Marty > > >