Skip Menu |

This queue is for tickets about the CGI-Uploader CPAN distribution.

Report information
The Basics
Id: 40909
Status: rejected
Priority: 0/
Queue: CGI-Uploader

People
Owner: MARKSTOS [...] cpan.org
Requestors: RSAVAGE [...] cpan.org
Cc:
AdminCc:

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



Subject: Column gen_from_id forced to accept nulls
The hash returned by sub extract_meta() is missing the key/value pair gen_from_id => 0. This means it is not passed in to sub store_meta(), which means it is not part of the generated SQL. So, if the column is declared by the caller to be gen_from_id integer not null the SQL execute dies because that column is not populated. I call the column parent_id, so I get this error: null value in column "parent_id" violates not-null constraint.
On Thu Nov 13 18:44:46 2008, RSAVAGE wrote: Show quoted text
> The hash returned by sub extract_meta() is missing the key/value pair > gen_from_id => 0. > > This means it is not passed in to sub store_meta(), which means it is > not part of the generated SQL. > > So, if the column is declared by the caller to be > gen_from_id integer not null > the SQL execute dies because that column is not populated. > > I call the column parent_id, so I get this error: > null value in column "parent_id" violates not-null constraint.
I think I disagree about this behavior. I think a parent should have "gen_from_id" set to NULL to correctly represent that it is not generated from anything. Am I missing something? Mark
Marking as resolved, See "RT#40910" for context.