Skip to content
This repository has been archived by the owner on Dec 8, 2021. It is now read-only.

fix: Value::op==() correctly handles Date and Timestamp #1386

Merged
merged 1 commit into from
Mar 16, 2020

Conversation

devjgm
Copy link
Contributor

@devjgm devjgm commented Mar 15, 2020

Oops. It looks like we forgot to teach Value::op== how to compare Date
and Timestamps. Now it's fixed, and I added a test to make sure basic
Value equality works for all "kinds".


This change is Reviewable

Oops. It looks like we forgot to teach Value::op== how to compare Date
and Timestamps. Now it's fixed, and I added a test to make sure basic
Value equality works for all "kinds".
@devjgm devjgm requested a review from coryan March 15, 2020 23:17
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 15, 2020
@codecov
Copy link

codecov bot commented Mar 16, 2020

Codecov Report

Merging #1386 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1386      +/-   ##
==========================================
+ Coverage   94.58%   94.59%   +<.01%     
==========================================
  Files         185      186       +1     
  Lines       15316    15329      +13     
==========================================
+ Hits        14487    14500      +13     
  Misses        829      829
Impacted Files Coverage Δ
google/cloud/spanner/value.cc 97% <ø> (+0.01%) ⬆️
google/cloud/spanner/value_test.cc 99.28% <100%> (+0.02%) ⬆️
google/cloud/spanner/internal/polling_loop.h 91.89% <0%> (-2.71%) ⬇️
google/cloud/spanner/internal/spanner_stub.cc 65.65% <0%> (-1.02%) ⬇️
google/cloud/spanner/client.cc 96.91% <0%> (-0.62%) ⬇️
...on_tests/rpc_failure_threshold_integration_test.cc 85.55% <0%> (-0.16%) ⬇️
google/cloud/spanner/internal/session.h 100% <0%> (ø) ⬆️
google/cloud/spanner/internal/transaction_impl.h 100% <0%> (ø) ⬆️
...cloud/spanner/internal/partial_result_set_resume.h 100% <0%> (ø) ⬆️
google/cloud/spanner/transaction.h 100% <0%> (ø) ⬆️
... and 8 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e9b0ad...555749c. Read the comment docs.

@devjgm devjgm merged commit f83a24e into googleapis:master Mar 16, 2020
@devjgm devjgm deleted the equal-date-time branch March 16, 2020 03:27
devjgm added a commit to devjgm/google-cloud-cpp that referenced this pull request May 7, 2020
…oogle-cloud-cpp-spanner#1386)

Oops. It looks like we forgot to teach Value::op== how to compare Date
and Timestamps. Now it's fixed, and I added a test to make sure basic
Value equality works for all "kinds".
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants