]> gerrit.simantics Code Review - simantics/platform.git/commit
Backported b75a6bbc for release/1.34.1 31/2031/2
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 26 Aug 2018 12:28:01 +0000 (15:28 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sun, 26 Aug 2018 12:38:51 +0000 (12:38 +0000)
commitbd18cd4f331ac6e33637422ca83245dec1c06226
treecd5cc019bccf3dd4ab634ef21de2723720ea9128
parentca033b3acc9037de9543a2b0e78aeebe8b50c4f4
Backported b75a6bbc for release/1.34.1

Previous too-optimized implementation had multiple flaws:
* Index calculation did not have enough parenthesis in it which meant
  that the value table index was sometimes calculated incorrectly.
  This lead to string literal values being read incorrectly.
* Did not take into account string literals longer than 127 characters
* Did not take into account that string literals are modified-utf-8
  encoded and simply decoded them as US-ASCII bytes. Essentially all
  resources with name containing special characters were indexed
  incorrectly up until now.

All of these flaws have been in the code for ages.

gitlab #86

Change-Id: Ibd5ecbaa1cdd1b8be759905bd8c29b9f8e012207
(cherry picked from commit cd47b6877cee258113eb00523701a57374becfd8)
bundles/org.simantics.db.procore/src/fi/vtt/simantics/procore/internal/DirectQuerySupportImpl.java