Re: [Templates] Passing a list to DBI execute?

[prev] [thread] [next] [Date index for 2004/12/06]

From: Andy Wardley
Subject: Re: [Templates] Passing a list to DBI execute?
Date: 18:19 on 06 Dec 2004
Larry Leszczynski wrote:
> [%
>    sth  = DBI.prepare(query);
>    rows = sth.execute(bind_params);
> -%]
> 
[...]

> Is there some sort of dereferencing or eval-ing that I need to do to get
> the bind_params list passed through to execute?

No, not in TT2.  In TT3 you'll be able to do this:

  [% sth.execute(@bind_params) %] 

to dereference the list.

Sorry, that doesn't help you much now.  

A


_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Passing a list to DBI execute?
Larry Leszczynski 18:14 on 06 Dec 2004

Re: [Templates] Passing a list to DBI execute?
Andy Wardley 18:19 on 06 Dec 2004

Re: [Templates] Passing a list to DBI execute?
Harald Joerg 21:34 on 06 Dec 2004

Re: [Templates] Passing a list to DBI execute? (solved)
Larry Leszczynski 22:55 on 06 Dec 2004

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52