Skip to content

Commit

Permalink
Merge pull request #1530 from AmpersandTarski/bugfix-devide-by-zero
Browse files Browse the repository at this point in the history
Fix issue Divide by zero in Excel importer #1528
  • Loading branch information
hanjoosten authored Jan 5, 2025
2 parents eb4e3fc + eece20a commit df6f1b0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions ReleaseNotes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Release notes of Ampersand

## v5.2.5
- [Issue #1528](https://github.com/AmpersandTarski/Ampersand/issues/1528) Bugfix, devision by 0.

## v5.2.4

- [Issue #1516](https://github.com/AmpersandTarski/Ampersand/issues/1516) It is now possible to only generate datamodel images using --datamodelOnly
Expand Down
2 changes: 1 addition & 1 deletion ampersand.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cabal-version: 2.0
-- see: https://github.com/sol/hpack

name: ampersand
version: 5.2.4
version: 5.2.5
synopsis: Toolsuite for automated design of enterprise information systems.
description: You can define your business processes by means of rules, written in Relation Algebra.
category: Database Design
Expand Down
2 changes: 1 addition & 1 deletion package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ampersand
version: 5.2.4
version: 5.2.5
author: Stef Joosten
maintainer: stef.joosten@ou.nl
synopsis: Toolsuite for automated design of enterprise information systems.
Expand Down
1 change: 1 addition & 0 deletions src/Ampersand/Core/AbstractSyntaxTree.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,7 @@ unsafePAtomVal2AtomValue typ mCpt pav =
where
roundedVal =
case rawVal of
AAVDateTime _ (UTCTime _ 0) -> rawVal -- prevent devision by zero
AAVDateTime t x ->
-- Rounding is needed, to maximize the number of databases
-- on wich this runs. (MySQL 5.5 only knows seconds)
Expand Down

0 comments on commit df6f1b0

Please sign in to comment.