Skip to content

Commit 4f0fe98

Browse files
committed
chore: remove outdated commented-out code
1 parent 5511b1d commit 4f0fe98

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/database/arangodb/aql-generator.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,19 +1134,6 @@ function getFastStartsWithQuery(lhs: AQLFragment, rhsValue: string): AQLFragment
11341134
// within its case-sensitivity category. For ASCII characters, that's simply UPPER(), but that will not always be
11351135
// the case. The same thing applies to the upper bound.
11361136
return aql`(${lhs} >= UPPER(${rhsValue}) && ${lhs} < LOWER(${maxStr}))`;
1137-
1138-
// the following does not work because string sorting depends on the DB's collator
1139-
// which does not necessarily sort the characters by code points
1140-
// charCodeAt / fromCharCode works on code units, and so does the string indexer / substr / length
1141-
/*const lastCharCode = rhsValue.charCodeAt(rhsValue.length - 1);
1142-
const nextCharCode = lastCharCode + 1;
1143-
if (nextCharCode >= 0xD800) {
1144-
// don't mess with surrogate pairs
1145-
return undefined;
1146-
}
1147-
1148-
const nextValue = rhsValue.substring(0, rhsValue.length - 1) + String.fromCharCode(nextCharCode);
1149-
return aql`(${lhs} >= ${rhsValue} && ${lhs} < ${nextValue})`;*/
11501137
}
11511138

11521139
function getEqualsIgnoreCaseQuery(lhs: AQLFragment, rhsValue: string): AQLFragment {

0 commit comments

Comments
 (0)