Re: Clarification on DBI module

2007-05-24 Thread ramesh thangamani
nd execute because the record buffer in the statment handle is not cleaned out because no execute took place. - Original Message - From: ramesh thangamani To: John Scoles ; dbi-users@perl.org ; [EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 8:10AM Sub

Re: Clarification on DBI module

2007-05-14 Thread ramesh thangamani
is working correctly as it is written by the way. You get the same results for the second execute because the record buffer in the statment handle is not cleaned out because no execute took place. - Original Message - From:ramesh thangamani To: John Scoles ; dbi-users@pe

Re: Clarification on DBI module

2007-05-10 Thread Tim Bunce
On Thu, May 10, 2007 at 02:50:10PM +0200, Peter J. Holzer wrote: > On 2007-05-10 07:50:16 -0400, Jeffrey Seger wrote: > > On your execution without a bound value, are you actually looking for rows > > where the empno column is null? If so, try this: > > > > instead of > > my @bind1 = (); > > try:

Re: Clarification on DBI module

2007-05-10 Thread ramesh thangamani
get the same results for the second execute because the record buffer in the statment handle is not cleaned out because no execute took place. - Original Message - From:ramesh thangamani To: John Scoles ; dbi-users@perl.org ; [EMAIL PROTECTED] Sent: Wednesday, May 09

Re: Clarification on DBI module

2007-05-10 Thread Peter J. Holzer
On 2007-05-10 07:50:16 -0400, Jeffrey Seger wrote: > On your execution without a bound value, are you actually looking for rows > where the empno column is null? If so, try this: > > instead of > my @bind1 = (); > try: > my @bind1 = (undef); > > Otherwise, what exactly are you looking for? As I

Re: Clarification on DBI module

2007-05-10 Thread Jeffrey Seger
orking correctly as it is written by the way. You get the same results for the second execute because the record buffer in the statment handle is not cleaned out because no execute took place. - Original Message - From:ramesh thangamani To: John Scoles ; dbi-users@perl.org

Re: Clarification on DBI module

2007-05-10 Thread ramesh thangamani
lts for the second execute because the record buffer in the statment handle is not cleaned out because no execute took place. - Original Message - From:ramesh thangamani To: John Scoles ; dbi-users@perl.org ; [EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 8:10

Re: Clarification on DBI module

2007-05-10 Thread ramesh thangamani
Thanks for your comments. May be i guess before calling execute i should check if the query has bind variables and whether they are passed otherwise i should error out. Jonathan Leffler <[EMAIL PROTECTED]> wrote: On 5/9/07, ramesh thangamani <[EMAIL PROTECTED]> wrote: Can you please

Re: Clarification on DBI module

2007-05-09 Thread ramesh thangamani
uot; To: ; Sent: Wednesday, May 09, 2007 3:09 AM Subject: Clarification on DBI module > Hi, > >Can you please clarify my doubts regarding DBI perl module used for > database connection. > > In my environment I am using single module to prepare and execute the sql > q

Re: Clarification on DBI module

2007-05-09 Thread Jonathan Leffler
On 5/9/07, ramesh thangamani <[EMAIL PROTECTED]> wrote: Can you please clarify my doubts regarding DBI perl module used for database connection. In my environment I am using single module to prepare and execute the sql queries. The sql query can have bind variables or they may not have. In

Re: Clarification on DBI module

2007-05-09 Thread John Scoles
correctly as it is written by the way. You get the same results for the second execute because the record buffer in the statment handle is not cleaned out because no execute took place. - Original Message - From: ramesh thangamani To: John Scoles ; dbi-users@perl.org ; [EMAIL PROTEC

Re: Clarification on DBI module

2007-05-09 Thread John Scoles
. cheers John Scoles - Original Message - From: "ramesh thangamani" <[EMAIL PROTECTED]> To: ; <[EMAIL PROTECTED]> Sent: Wednesday, May 09, 2007 3:09 AM Subject: Clarification on DBI module Hi, Can you please clarify my doubts regarding DBI perl mod

Clarification on DBI module

2007-05-09 Thread ramesh thangamani
Hi, Can you please clarify my doubts regarding DBI perl module used for database connection. In my environment I am using single module to prepare and execute the sql queries. The sql query can have bind variables or they may not have. In order to improve performance i used prepare() and