Skip Menu |

This queue is for tickets about the Class-DBI-FromCGI CPAN distribution.

Report information
The Basics
Id: 13855
Status: new
Priority: 0/
Queue: Class-DBI-FromCGI

People
Owner: Nobody in particular
Requestors: philippe.poumaroux [...] free.fr
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.94
Fixed in: (no value)



Subject: wrong processing of non filled optional integer/date fields
Using Class::DBI::FromCGI to update a Postgres v8 database, I've table with possibly NULL integer/date field. But when I left one of this field empty, letting SGBD putting the correct default value, I've got an error because the generated SQL order contains : field = ''. I suppose MySQL accept this syntax, but Postgres don't. In order to avoid this, I've modified FromCGI.pm like this: 220c220 < $fields->{field} = $value if $value; --- Show quoted text
> $fields->{field} = $value;
this apparently solves my problem.