Re:
От | Mace, Richard |
---|---|
Тема | Re: |
Дата | |
Msg-id | 07D7DD4F541A1743843C313080B3FB1A47A9A3@frdads01.lorien.co.uk обсуждение исходный текст |
Ответ на | ("Mace, Richard" <richard.mace@Lorien.co.uk>) |
Список | pgsql-novice |
Thanks for your help everyone. I have to admit to using the wrong DBD Driver; or copying an older script with reference to an inferior version I used previously. Let that be a lesson to us all !! thanks once again, Richard. -----Original Message----- From: Tom Lane [mailto:tgl@sss.pgh.pa.us] Sent: 18 December 2003 15:05 To: olly@lfix.co.uk Cc: Mace, Richard; pgsql-novice@postgresql.org Subject: Re: [NOVICE] Oliver Elphick <olly@lfix.co.uk> writes: > On Thu, 2003-12-18 at 08:40, Mace, Richard wrote: >> This code works fine for a field that is always populated e.g. name in >> place of telephone in line 1. > If a cell is NULL, I think it is undefined in DBI I'm not much of a DBI user, but one would hope that fetch() represents null values by storing an undef, rather than failing. Anything else would indicate utter brain death on the part of the DBI designers. Richard's example code looks fine to me, but I wonder if it is an exact copy of his real code. The error message ("Statement has no result to bind") is pretty specific and it's hard to see how it would come out from a bind operation on a SELECT statement. I am wondering about simple typos like applying the bind_columns call to the wrong statement handle. regards, tom lane ********************************************************************** The information contained in this email is confidential and is intended for the recipient only. If you have received it inerror, please notify us immediately by reply email and then delete it from your system. Please do not copy it or use itfor any purposes, or disclose its contents to any other person or store or copy this information in any medium. The viewscontained in this email are those of the author and not necessarily those of Lorien plc. Thank you for your co-operation. **********************************************************************
В списке pgsql-novice по дате отправления: