Re: Clarification on DBI module

2007-05-24 Thread ramesh thangamani
To: John Scoles ; dbi-users@perl.org ; [EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 8:10AM Subject: Re: Clarification on DBImodule Hi John, I am attaching thecode. Here is the result: $VAR1 =[ 'FORD' ]; $VAR1 =[ 'FORD

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-10 Thread ramesh thangamani
place. - Original Message - From:ramesh thangamani To: John Scoles ; dbi-users@perl.org ; [EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 8:10AM Subject: Re: Clarification on DBImodule Hi John, I am attaching thecode. Here is the result: $VAR1

Re: Clarification on DBI module

2007-05-10 Thread Jeffrey Seger
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 Subject: Re: Clarification on DBImodule Hi John, I am attaching thecode

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 ramesh thangamani
. - Original Message - From:ramesh thangamani To: John Scoles ; dbi-users@perl.org ; [EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 8:10AM Subject: Re: Clarification on DBImodule Hi John, I am attaching thecode. Here is the result: $VAR1 =[ 'FORD

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: my @bind1

Re: Clarification on DBI module

2007-05-09 Thread John Scoles
Hard to say without some of the orginal code could be a number of things. Do you have raiserror or pringerror set on the handle. If you are only printing an error you may not see it and you end up just rereading the cached data from the last query. Post you code so we can have a look at

Re: Clarification on DBI module

2007-05-09 Thread John Scoles
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 AM Subject: Re: Clarification on DBI module Hi John, I

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