File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed
main/kotlin/org/jetbrains/kotlinx/dataframe/io/db
test/kotlin/org/jetbrains/kotlinx/dataframe/io Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ public object MsSql : DbType("sqlserver") {
49
49
50
50
override fun convertSqlTypeToKType (tableColumnMetadata : TableColumnMetadata ): KType ? = null
51
51
52
- public override fun sqlQueryLimit (sqlQuery : String , limit : Int ): String {
53
- return sqlQuery.replace(" SELECT" , " SELECT TOP $limit " , ignoreCase = true )
54
- }
52
+ public override fun sqlQueryLimit (sqlQuery : String , limit : Int ): String =
53
+ sqlQuery.replace(" SELECT" , " SELECT TOP $limit " , ignoreCase = true )
55
54
}
Original file line number Diff line number Diff line change 1
1
package org.jetbrains.kotlinx.dataframe.io
2
2
3
3
import io.kotest.matchers.shouldBe
4
- import org.intellij.lang.annotations.Language
5
- import org.jetbrains.kotlinx.dataframe.DataFrame
6
- import org.jetbrains.kotlinx.dataframe.annotations.DataSchema
7
- import org.jetbrains.kotlinx.dataframe.api.cast
8
- import org.jetbrains.kotlinx.dataframe.api.filter
9
4
import org.jetbrains.kotlinx.dataframe.io.db.MsSql
10
5
import org.junit.AfterClass
11
6
import org.junit.BeforeClass
12
7
import org.junit.Test
13
- import java.sql.Connection
14
- import java.sql.DriverManager
15
- import java.sql.SQLException
16
- import kotlin.reflect.typeOf
17
8
18
9
class MsSqlTest {
19
10
companion object {
You can’t perform that action at this time.
0 commit comments