Hello,
on 09/20/2008 01:11 AM Nik Sands said the following:
> But you said that a '?' in a PrepareQuery should be converted to
> either an SQL NULL, or to a valid value in the actual Query.
>
> This is not happening in this case.
If you look at the generated code you can see this for setting the
prepared query parameter of the grams field.
if(IsSet($this->grams))
{
MetabaseQuerySetInteger($this->database,$statement,7,$this->grams);
}
else
MetabaseQuerySetNull($this->database,$statement,7,'integer');
Maybe you think you are doing the things correctly, but you are not.
Try using var_dump($inventory_item); before calling
$inventory_item->save(); and show the results here so we can double
check that the grams variable is really set to null or undefined.
--
Regards,
Manuel Lemos
Find and post PHP jobs
http://www.phpclasses.org/jobs/
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/