Skip to content

Commit 5f12bbf

Browse files
authored
Merge pull request #532 from dtsuzuku-ibm/increase-max-length-class-path-cache
increase the max length of varchar column of ClassPathCacheEntry table
2 parents b74bb71 + d499d34 commit 5f12bbf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

shared/src/main/kotlin/org/javacs/kt/classpath/CachedClassPathResolver.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import org.jetbrains.exposed.sql.transactions.transaction
1212
import java.nio.file.Path
1313
import java.nio.file.Paths
1414

15-
private const val MAX_PATH_LENGTH = 255
15+
private const val MAX_PATH_LENGTH = 2047
1616

1717
private object ClassPathMetadataCache : IntIdTable() {
1818
val includesSources = bool("includessources")

shared/src/main/kotlin/org/javacs/kt/database/DatabaseService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DatabaseMetadataEntity(id: EntityID<Int>) : IntEntity(id) {
2626
class DatabaseService {
2727

2828
companion object {
29-
const val DB_VERSION = 3
29+
const val DB_VERSION = 4
3030
const val DB_FILENAME = "kls_database.db"
3131
}
3232

0 commit comments

Comments
 (0)