Home » Database » MDB2_Schema » Bug #4170
MDB2_Tools_Manager_Writer fails to write the sequence definition correctly
Details
| Submitted | 2005-04-17 10:40 UTC |
|---|---|
| From | ivanchoo at singnet dot com dot sg |
| Assigned | lsmith |
| Status | Closed |
| Package | MDB2_Schema |
| PHP Version | 4.3.11 |
| OS | Darwin OS X |
| Roadmaps | (Not assigned) |
Comments
[2005-04-17 10:40 UTC] ivanchoo at singnet dot com dot sg
Description:
------------
dumpSequence() looks for the value of 'start' & 'on' in
the $sequence_definition instead of
$sequence_definition[$sequence_name].
The correct sequence definition never gets output.
Reproduce code:
---------------
function dumpSequence($sequence_definition, $sequence_name, $eol, $dump = MDB2_MANAGER_DUMP_ALL) {
$sequence_definition = $sequence_definition[$sequence_name]; // Add this line!
$buffer = "$eol <sequence>$eol <name>$sequence_name</name>$eol";
if ($dump == MDB2_MANAGER_DUMP_ALL || $dump == MDB2_MANAGER_DUMP_CONTENT) {
if (isset($sequence_definition['start'])) {
..
}
..
}
[2005-04-17 11:17 UTC] smith at backendmedia dot com
This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.
this code has been moved to the MDB2_Schema ... i fixed the bug there in CVS.