Re: How to bind a null value while using insert statements

"Harpreet Dhaliwal" <[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <[email protected]>
I'm using DBD:pg 1.49.
Thats the only code I have for testing purpose.

Thanks,
Jas

On 1/22/07, David E. Wheeler <[email protected]> wrote:
>
> On Jan 22, 2007, at 7:25 AM, Harpreet Dhaliwal wrote:
>
> > Cannot bind a reference (ARRAY(0x925069c)) ((null))
> >
> > This is because value of column a is defined but null
> > So how should in bind null value in my insert statement?
>
> Can you paste some example code? Also, what versions of DBI and
> DBD::Pg are you using? DBI 1.51 fixed an issue with undefs in calls
> to bin_col().
>
>    http://search.cpan.org/dist/DBI/Changes#Changes_in_DBI_1.51_
> (svn_rev_6475)%2C_6th_June_2006
>
> Best,
>
> David
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.