aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/com/healthmarketscience/jackcess/impl/General97IndexCodes.java
diff options
context:
space:
mode:
authorJames Ahlborn <jtahlborn@yahoo.com>2021-01-24 17:48:25 +0000
committerJames Ahlborn <jtahlborn@yahoo.com>2021-01-24 17:48:25 +0000
commit253e37fa2d531afb9e8fd706d735bc178a8032cb (patch)
tree9fe3280f4280e3c705c36a0ece191d32d218d1f1 /src/main/java/com/healthmarketscience/jackcess/impl/General97IndexCodes.java
parente29399db260fbc2140abca07736b1dd53f8331ed (diff)
downloadjackcess-253e37fa2d531afb9e8fd706d735bc178a8032cb.tar.gz
jackcess-253e37fa2d531afb9e8fd706d735bc178a8032cb.zip
ignore trailing spaces when creating text index entries
git-svn-id: https://svn.code.sf.net/p/jackcess/code/jackcess/trunk@1361 f203690c-595d-4dc9-a70b-905162fa7fd2
Diffstat (limited to 'src/main/java/com/healthmarketscience/jackcess/impl/General97IndexCodes.java')
-rw-r--r--src/main/java/com/healthmarketscience/jackcess/impl/General97IndexCodes.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/main/java/com/healthmarketscience/jackcess/impl/General97IndexCodes.java b/src/main/java/com/healthmarketscience/jackcess/impl/General97IndexCodes.java
index 6b68aea..77ebb67 100644
--- a/src/main/java/com/healthmarketscience/jackcess/impl/General97IndexCodes.java
+++ b/src/main/java/com/healthmarketscience/jackcess/impl/General97IndexCodes.java
@@ -99,14 +99,8 @@ public class General97IndexCodes extends GeneralLegacyIndexCodes
Object value, ByteStream bout, boolean isAscending)
throws IOException
{
- // first, convert to string
- String str = ColumnImpl.toCharSequence(value).toString();
-
- // all text columns (including memos) are only indexed up to the max
- // number of chars in a VARCHAR column
- if(str.length() > MAX_TEXT_INDEX_CHAR_LENGTH) {
- str = str.substring(0, MAX_TEXT_INDEX_CHAR_LENGTH);
- }
+ // convert to string
+ String str = toIndexCharSequence(value);
// record previous entry length so we can do any post-processing
// necessary for this entry (handling descending)