COMP3311 23T1 |
Assignment 2 Fixes, Updates and Clarifications |
Database Systems |
[Assignment Spec] [Database Design] [Examples] [Testing] [Submitting] [Fixes+Updates]
This document contains descriptions for any fixes to solve minor bugs
that people might find in the supplied code/database.
Each fix is tagged with a timestamp,
which is when I fixed it in the supplied code.
If you collected the code/database after that time,
it will already have the relevant fix included.
The Evolution Requirements for the Eeveelutions were incorrect.
Re-Download the Pokémon database Dump file to get updated data.
I have been informed that "Effectivenesses" and "Lerns" are not real words.
Instead of bribing a dictionary publisher to add them to the dictionary, Instead we have renamed the table and attribute.
Re-Download the Pokémon database Dump file to get updated schema.
A bug in the script that generated the "Encounters" table meant that late game encounters were not added to the table.
There should now be a far greater number of encounters in the table.
Incorrectly migrating a previous update to the "Requirements" table meant that the foreign keys were not correctly referenced in the "Encounter_Requirements" table.
Foreign keys in the "Encounter_Requirements" table should now correctly reference the "Requirements" table.
Re-Download the Pokémon database Dump file to get updated data.
The Possible Evolutions Script previously had ambiguous output for ORed requirements.
This has now been clarified, but specifying that ORed requirements should be ordered by the Evolitions.ID attribute.
A bug in the script that generated the "Learnable_Moves" table stopped variation forms from inheriting the moves of their base form.
Re-Download the Pokémon database Dump file to get updated data.
Added additional clarification for how floating point numbers should be rounded in the Attack Damage and Possible Evolutions Scripts.
Attack Damage should be rounded to 1 decimal places before truncating to an integer.
Possible Evolutions should be rounded to 4 decimal places and the value may be +/- 0.0001 of the expected value.
10 games not 5 should be shown to the user.
Pokemon can only learn moves from the previously selected game, not just any move.
The menu()
function was not included in the ZIPed my_pokemon files. It has now been added.
Added a comment to the my_pokemon files about using random numbers in PostgreSQL.
Re-Download the provided file ZIP to get updated files.
The sample solution had a multiplication by 0 error causing very low damage values.
This has now been fixed and the example output has been updated.
The Attack Damage Script should use Double Precision Floating Point numbers during calculations,
then case to Numeric for rounding.
The autotests page has been created with instructions for running autotest on ass2.
Changed many TEXT attributes to store text in Title-case, the same case as python's str.title()
function.
the case where either the attacking pokemon doesn't learn any moves or all moves deal 0 damage was
previously listed as an error, but it is a valid (if empty) result, and should not be considered an error
(and should not be printed to stderr).
Re-Download the Pokémon database Dump file to get updated data.