Re: [PHP] pear mdb2 and null

2009-04-13 Thread Bastien Koert
[snip] >> I need it to error when an attempt to create a record without setting that >> field is attempted, but setting the field to an empty string is fine. >> >> Attempting to insert data without defining that field indicates there is >> not sufficient information to create a record. Setting that

Re: [PHP] pear mdb2 and null

2009-04-12 Thread Michael A. Peters
Michael A. Peters wrote: Phpster wrote: On Apr 11, 2009, at 21:38, "Michael A. Peters" wrote: I've run into a small issue with mdb2. I have a mysql database with a field set to longtext not null. inserting "" into that field works just dandy when using the mysql_ functions. However, wh

Re: [PHP] pear mdb2 and null

2009-04-12 Thread Michael A. Peters
Phpster wrote: On Apr 11, 2009, at 21:38, "Michael A. Peters" wrote: I've run into a small issue with mdb2. I have a mysql database with a field set to longtext not null. inserting "" into that field works just dandy when using the mysql_ functions. However, when using mdb2 - it convert

Re: [PHP] pear mdb2 and null

2009-04-12 Thread Phpster
On Apr 11, 2009, at 21:38, "Michael A. Peters" wrote: I've run into a small issue with mdb2. I have a mysql database with a field set to longtext not null. inserting "" into that field works just dandy when using the mysql_ functions. However, when using mdb2 - it converts "" to NULL wh

[PHP] pear mdb2 and null

2009-04-11 Thread Michael A. Peters
I've run into a small issue with mdb2. I have a mysql database with a field set to longtext not null. inserting "" into that field works just dandy when using the mysql_ functions. However, when using mdb2 - it converts "" to NULL which is NOT what I want to have happen, and the result is th