Skip to content

Fix SQLite Result ValueDateTime data-type regression bug and related test populated.sql db errors #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Apr 20, 2019

Conversation

emiliom
Copy link
Member

@emiliom emiliom commented Apr 20, 2019

Fixes #158.

Tested on the timeseries notebook at https://github.com/ODM2/ODM2PythonAPI/blob/master/Examples/TimeSeries_RetrieveVisualize.ipynb

While testing and debugging, discovered that #158 was related to the presence of messy (bad/invalid) datetime strings in the tests/test_odm2/data/populated.sql test SQLite database ddl. Fixing that file in this PR.

emiliom added 2 commits April 16, 2019 13:04
Fixed a set of 40 TimeSeriesResultValues insert statements in the populated.sql test SQLite database creation file, where the datetimes where only specified as dates, not datetimes; and around 2000 statements that used mm/dd/yyyy format rather than yyyy/mm/dd. They were leading to the use of a non-datetime field type. Also changed odm2api module path calls in test_odm2/test_readservice.py to remove deprecated use of ODM2 module hierarchy.
Fixed other test TimeSeriesResultValues datetime entries
@emiliom emiliom added this to the v0.7.2 release milestone Apr 20, 2019
@emiliom
Copy link
Member Author

emiliom commented Apr 20, 2019

The main Travis CI TEST_TARGET ("default", Python 2.7) is passing. "coding_standards" test target is failing due to long-standing code patterns, but that doesn't get in the way of a successful build.

Appveyor CI hasn't been working for quite a while, so I'm ignoring its failures.

Merging PR.

@emiliom emiliom merged commit 334f660 into ODM2:development Apr 20, 2019
@emiliom emiliom deleted the bugfix_sqlitets branch May 11, 2019 05:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant