Title: Specification hash breaking change for sql IN operator · Issue #223 · SharpRepository/SharpRepository · GitHub
Open Graph Title: Specification hash breaking change for sql IN operator · Issue #223 · SharpRepository/SharpRepository
X Title: Specification hash breaking change for sql IN operator · Issue #223 · SharpRepository/SharpRepository
Description: I upgraded the SharpRepository packages of a solution from version 1.5.0.2 to version 2.0.4.3, and I noticed that the generated cache key is different between the two releases when the sql "IN" operator is used. For example, a typical qu...
Open Graph Description: I upgraded the SharpRepository packages of a solution from version 1.5.0.2 to version 2.0.4.3, and I noticed that the generated cache key is different between the two releases when the sql "IN" ope...
X Description: I upgraded the SharpRepository packages of a solution from version 1.5.0.2 to version 2.0.4.3, and I noticed that the generated cache key is different between the two releases when the sql "IN...
Opengraph URL: https://github.com/SharpRepository/SharpRepository/issues/223
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Specification hash breaking change for sql IN operator","articleBody":"I upgraded the SharpRepository packages of a solution from version 1.5.0.2 to version 2.0.4.3, and I noticed that the generated cache key is different between the two releases when the sql \"IN\" operator is used.\r\nFor example, a typical query like the following:\r\n\r\n```csharp\r\nvar collection1 = new List\u003cint\u003e() { 1, 2, 3 };\r\nvar collection2 = new List\u003cint\u003e() { 4, 5, 6 };\r\n\r\nvar results1 = repo.FindAll(x =\u003e collection1.Contains(x.Id));\r\nvar results2 = repo.FindAll(x =\u003e collection2.Contains(x.Id));\r\n```\r\n\r\nshould produce two different cache keys because the collection values are different, instead version 2.0.4.3 produces the same value.\r\n\r\nSo I checked the unit test code and found that a **\"Different_Predicate_With_Variable_Array_Will_Give_Different_Hash\"** unit test exists, but in the v1.5.0.2 it correctly checks that \r\n```csharp\r\nhash1.ShouldNotEqual(hash2).\r\n```\r\nInstead the newer 2.0.2 version checks \r\n```csharp\r\nhash1.ShouldBe(hash2) \r\n```\r\nthat is obviously wrong.\r\n\r\nIs this an intentional breaking change or just a bug?\r\n","author":{"url":"https://github.com/Liu79","@type":"Person","name":"Liu79"},"datePublished":"2018-09-04T15:25:39.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/223/SharpRepository/issues/223"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:decb75a8-be47-e56e-a715-af63de072f4a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D2E4:1494FD:2DE5500:3CE94DC:69743B53 |
| html-safe-nonce | cf984c389b1d43fd4688bfc714f1e81459650adf5c3f84b8781a8087deb112da |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMkU0OjE0OTRGRDoyREU1NTAwOjNDRTk0REM6Njk3NDNCNTMiLCJ2aXNpdG9yX2lkIjoiMTcxMjM1MDQzMjcyMzIyMTMzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c3a523fb5e6523f4b2e3762abf06c24eb21da87096634c88bf29bef002ae7a29 |
| hovercard-subject-tag | issue:356862284 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SharpRepository/SharpRepository/223/issue_layout |
| twitter:image | https://opengraph.githubassets.com/95eea0a0736fa60c75e6cd1c97970879ff94ec1c7ef2c868c88a6c36257132b5/SharpRepository/SharpRepository/issues/223 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/95eea0a0736fa60c75e6cd1c97970879ff94ec1c7ef2c868c88a6c36257132b5/SharpRepository/SharpRepository/issues/223 |
| og:image:alt | I upgraded the SharpRepository packages of a solution from version 1.5.0.2 to version 2.0.4.3, and I noticed that the generated cache key is different between the two releases when the sql "IN" ope... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Liu79 |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c |
| turbo-cache-control | no-preview |
| go-import | github.com/SharpRepository/SharpRepository git https://github.com/SharpRepository/SharpRepository.git |
| octolytics-dimension-user_id | 1801360 |
| octolytics-dimension-user_login | SharpRepository |
| octolytics-dimension-repository_id | 4514047 |
| octolytics-dimension-repository_nwo | SharpRepository/SharpRepository |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4514047 |
| octolytics-dimension-repository_network_root_nwo | SharpRepository/SharpRepository |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fe7e2e8de6e57740bca50402351ea656f7a4bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width