View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 131 | PHPOF2 | Default | public | 19 Dec 2008 11:30 | 28 Apr 2009 12:09 |
| Reporter | mrosenquist | Assigned To | timj | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | assigned | Resolution | open | ||
| Summary | 131: Currently Default values are not set when inserting | ||||
| Description | Currently Default values are not set when inserting | ||||
| Tags | No tags attached. | ||||
|
|
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" |
|
|
One other solution: - Add a function DBRow::applyDefaults() - Would only write to null fields - Possibly throw an exception for stored rows |
| 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 |