Yes, I don't think the hash is a good approach anyways, since I can't find
any purpose for passing a hash instead of an array, even to execute.
It can be implemented by doing some hash ordering as long as the keys
contain 1..any_num_of_placeholder.  It can probably also be implemented with
names placeholders like %place_hash = (':foo1' => 'bar1', .....);

and then matching up the keys, but again, I don't see a purpose, unless
anyone else sees it.  Anyone???

Ilya

-----Original Message-----
From: Rudy Lippan
To: Sterin, Ilya
Cc: ''[EMAIL PROTECTED] ' '; ''[EMAIL PROTECTED] ' '
Sent: 7/13/01 1:20 PM
Subject: RE: Silly question re: bind_param vs: bind_columns

On Fri, 13 Jul 2001, Sterin, Ilya wrote:

> What do you mean how?  The proposed bind_params(@params) would bind
the

Oh, I was looking at the one below that with a hash as the param to
bind_params();

> $sth->execute(@params) 
> 
> does the same, in binds the array of args in order to their
placeholders :)
> 

Yes, but that hash would keep you from having to order the parameters.
That way you could just do your insert based on field names. Probably
not
that easy to implement, though.


Later,

Rudy

Reply via email to