in reply to Re: DBI + Binds?
in thread DBI + Binds?


I know how to do it thanks - the problem is the code is not working with an update bind

Kevman

Replies are listed 'Best First'.
Re: Re: Re: DBI + Binds?
by rdfield (Priest) on May 27, 2002 at 11:20 UTC
    What values are in @array? If there is an undef, this won't work properly: undef is translated to an SQL null and comparisons must be made with the IS operator, eg field1 is null because field1 = null will always be false.

    rdfield


      That was exactly the problem!!! Many ++++++ to you!!

      took me 4 hours to fix!!

      Thought I'd cleared the nulls - but alas no

      It was translated '' as a NULL I think???

      Many Thanks

      Kevman

      No undefs - Just an array of fields - I replace undefs with blank

      Thanks for asking though :)

      Kevman