Skip to content

Commit 85d15dd

Browse files
committed
fix: Fix isVersionCovers to handle comparison of 8.0 with 5.6
1 parent edf1416 commit 85d15dd

File tree

1 file changed

+1
-1
lines changed
  • exposed-core/src/main/kotlin/org/jetbrains/exposed/sql

1 file changed

+1
-1
lines changed

exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Database.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ class Database private constructor(
7272

7373
/** Whether the version number of the database is equal to or greater than the provided [majorVersion] and [minorVersion]. */
7474
fun isVersionCovers(majorVersion: Int, minorVersion: Int) =
75-
this.majorVersion >= majorVersion && this.minorVersion >= minorVersion
75+
this.majorVersion > majorVersion || (this.majorVersion == majorVersion && this.minorVersion >= minorVersion)
7676

7777
/** Whether the database supports ALTER TABLE with an add column clause. */
7878
val supportsAlterTableWithAddColumn by lazy(

0 commit comments

Comments
 (0)