Skip to content
Snippets Groups Projects
Verified Commit a034e7a4 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

BUG: #41 - NaN Double Values

parent af7d933b
Branches
Tags
No related merge requests found
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Added (for new features)
### Changed (for changes in existing functionality)
### Deprecated (for soon-to-be removed features)
### Removed (for now removed features)
### Fixed (for any bug fixes)
- NaN Double Values (see #41)
### Security (in case of vulnerabilities)
......@@ -32,7 +32,7 @@ runserver:
run: compile
mvn exec:java@run
run-debug:
run-debug: jar
java -Dcaosdb.debug=true -jar target/caosdb-server-0.1-SNAPSHOT-jar-with-dependencies.jar
run-single:
......
......@@ -44,8 +44,12 @@ public class GenericValue implements SingleValue {
throw new NullPointerException();
}
this.value = d;
if (d.isNaN()) {
this.table = Table.text_data;
} else {
this.table = Table.double_data;
}
}
public GenericValue(final String s) {
if (s == null) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment