Skip to content

Commit

Permalink
adding nulls appropriately for talk_speaker status columns
Browse files Browse the repository at this point in the history
  • Loading branch information
lornajane committed May 1, 2012
1 parent 83b312f commit e08f481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/dbgen/generator.class.php
Expand Up @@ -216,7 +216,7 @@ protected function _generateTalks($count) {
$status = $this->_chance(TALK_SPEAKER_PENDING) ? "pending" : "";

if (! $first) echo ",\n";
printf("(%d, '%s', NULL, %s, '%s')", $talk->id, $speaker_name, $speaker_id, $status);
printf("(%d, '%s', NULL, %s, %s)", $talk->id, $speaker_name, $speaker_id, $status ? "'pending'" : "null");

$first = false;
}
Expand Down

0 comments on commit e08f481

Please sign in to comment.