You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: BotCommands-core/src/main/kotlin/io/github/freya022/botcommands/internal/components/repositories/ComponentRepository.kt
+12-3Lines changed: 12 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -74,9 +74,18 @@ internal class ComponentRepository(
74
74
}
75
75
76
76
// The 42.7.5 driver is required for byte[] support in setObject
77
-
check(metadata.driverVersion >="42.7.5") {
78
-
"Using components require a version of the PostgreSQL driver higher or equal to 42.7.5"
77
+
val driverVersion = metadata.driverVersion
78
+
val versionComponents = driverVersion.split('.').mapNotNull { it.toIntOrNull() }
0 commit comments