Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The database used is H2 . The information is stored in a copy of the database_scheme.sql file with a minor modification (the following modifications:

  • removal of the function that provides the next value of a sequence
  • removal of clausule "WITH TIME ZONE" from TIMESTAMP values
  • removal of DEFAULT NEXTVAL('<seq>') constructs due to incompatibility. DatabaseManager has been changed to add the proper ID to the column. Proposed to change the affected valued to IDENTITY values, that include autoincrement.
  • removal of UNIQUE constructs due to incompatibility. Tests will need to verify uniqueness
  • replaced BIGSERIAL by BIGINT
  • replacing getnextid for NEXTVAL on an INSERT for epersongroup
  • due to the parsing process some spaces have been added at the start of some lines to avoid syntax errors

The code in the mock DatabaseManager has been changed so the queries are compatible with H2. The changes are minimal as H2 is mostly compatible with POstgreSQLPostgreSQL. Redundant checks (like checking fi the database is Oracle) have been removed from the mock.

...