Skip to content

WIP: Fix kassenbuch get_buchungen for microseconds - #143

Open
mgmax wants to merge 2 commits into
developmentfrom
fix-kassenbuch-microseconds
Open

WIP: Fix kassenbuch get_buchungen for microseconds#143
mgmax wants to merge 2 commits into
developmentfrom
fix-kassenbuch-microseconds

Conversation

@mgmax

@mgmax mgmax commented Aug 14, 2016

Copy link
Copy Markdown
Member

Using Datetime() in the SQLite query strips away the microseconds. SQLites cannot do datetime formatting for microseconds, even with strftime().

First workaround:
Discards all microseconds when filtering for a specific time range.

Problem:
This may create a race-condition if a booking is made at xxx.100 seconds and then kassenbuch show is called at xxx.200 sec, because the booking was made after xxx.000 sec
and the snapshot_time mechanism filters out the booking from the "future".

mgmax added 2 commits August 14, 2016 16:49
This commit just exposes the error and clarifies the type usage

travis will fail, so skip CI:
[CI skip]
From now on, kassenbuch discards all microseconds when filtering for a specific time range.

This may create a race-condition if a booking is made at xxx.100 seconds and then `kassenbuch show` is called at xxx.200 sec, because the booking was made after xxx.000 sec
and the `snapshot_time` mechanism filters out the booking from the "future".
@codecov-io

codecov-io commented Aug 14, 2016

Copy link
Copy Markdown

Current coverage is 28.33% (diff: 95.83%)

Merging #143 into development will increase coverage by 0.14%

@@           development       #143   diff @@
=============================================
  Files               54         54          
  Lines             6774       6789    +15   
  Methods              0          0          
  Messages             0          0          
  Branches             0          0          
=============================================
+ Hits              1910       1924    +14   
- Misses            4864       4865     +1   
  Partials             0          0          

Powered by Codecov. Last update 2017193...00a9448

@mgmax
mgmax marked this pull request as draft December 26, 2022 15:54

@dh4nav dh4nav left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Schaut gut aus, hab keine Probleme gefunden.

@dh4nav
dh4nav marked this pull request as ready for review June 14, 2023 14:02
dh4nav
dh4nav previously approved these changes Jun 14, 2023

@dh4nav dh4nav left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

schaut gut aus

@dh4nav
dh4nav self-requested a review June 14, 2023 15:07
@dh4nav
dh4nav dismissed their stale review June 14, 2023 15:10

error

dh4nav
dh4nav previously requested changes Jun 14, 2023

@dh4nav dh4nav left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test

@dh4nav
dh4nav dismissed their stale review June 14, 2023 15:12

error

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.

3 participants