Skip to content
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

DatabaseMetaDataTest does not test binary mode #3229

Closed
davecramer opened this issue Apr 23, 2024 · 0 comments · Fixed by #3231
Closed

DatabaseMetaDataTest does not test binary mode #3229

davecramer opened this issue Apr 23, 2024 · 0 comments · Fixed by #3231

Comments

@davecramer
Copy link
Member

public void initDatabaseMetaDataTest(BinaryMode binaryMode) {

initDatabaseMetaDataTest does not run before setUp so binaryMode is null during setUp

davecramer referenced this issue Apr 24, 2024
…-mode (#3225)

* test: add tests for `TIME '24:00'` / LocalTime.MAX in binary-mode

add tests which verify, that conversion of binary-transferred TIME/TIMETZ `24:00` to LocalTime currently fails

* fix: handling of `TIME '24:00'` / LocalTime in binary-mode

fixes conversion of TIME/TIMETZ `24:00` to LocalTime from binary.
we now convert `24:00` to `LocalTime.MAX` instead of failing with `Invalid value for NanoOfDay`, which is now consistent with conversion from text.

* test: remove superfluous delete at end of test

`#setUp()` and `#tearDown()` manage the test-table's lifecycle. the test-table gets dropped at end of test anyway.
vlsi added a commit to vlsi/pgjdbc that referenced this issue Apr 24, 2024
vlsi added a commit to vlsi/pgjdbc that referenced this issue Apr 24, 2024
vlsi added a commit to vlsi/pgjdbc that referenced this issue Apr 24, 2024
@vlsi vlsi changed the title Broken tests DatabaseMetaDataTest does not test binary mode Apr 24, 2024
vlsi added a commit to vlsi/pgjdbc that referenced this issue Apr 24, 2024
vlsi added a commit to vlsi/pgjdbc that referenced this issue May 10, 2024
vlsi added a commit to vlsi/pgjdbc that referenced this issue May 10, 2024
vlsi added a commit to vlsi/pgjdbc that referenced this issue May 10, 2024
vlsi added a commit to vlsi/pgjdbc that referenced this issue May 10, 2024
vlsi added a commit to vlsi/pgjdbc that referenced this issue May 10, 2024
vlsi added a commit to vlsi/pgjdbc that referenced this issue May 10, 2024
vlsi added a commit to vlsi/pgjdbc that referenced this issue May 10, 2024
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 a pull request may close this issue.

1 participant