View Issue Details

IDProjectCategoryView StatusLast Update
131PHPOF2Defaultpublic28 Apr 2009 12:09
Reportermrosenquist Assigned Totimj  
PrioritynormalSeverityminorReproducibilityhave not tried
Status assignedResolutionopen 
Summary131: Currently Default values are not set when inserting
DescriptionCurrently Default values are not set when inserting

TagsNo tags attached.

Activities

timj

20 Dec 2008 11:05

manager   ~150

To be specific, PHPOF2 initialises values to NULL rather than to their database-default values. There are a few options:

- initialise to db default value
- don't initialise, but don't write values which are null to database (so database will initialise them)
- initialise to a "special" value (e.g. a magic constant) which means "set to default"

mrosenquist

28 Apr 2009 12:09

reporter   ~202

One other solution:

- Add a function DBRow::applyDefaults()
  - Would only write to null fields
  - Possibly throw an exception for stored rows

Issue History

Date Modified Username Field Change
19 Dec 2008 11:30 mrosenquist New Issue
20 Dec 2008 11:05 timj Note Added: 150
21 Dec 2008 22:26 timj Target Version => 0.11.0
21 Dec 2008 22:28 timj Status new => assigned
21 Dec 2008 22:28 timj Assigned To => timj
29 Dec 2008 17:12 timj Target Version 0.11.0 =>
28 Apr 2009 12:09 mrosenquist Note Added: 202