From 4ed77cc3e557bab059cdde690e0eb15b02de670d Mon Sep 17 00:00:00 2001 From: zaleslaw Date: Fri, 26 Apr 2024 13:05:32 +0200 Subject: [PATCH] Remove unnecessary inferNulls call in readJdbc The Infer.Nulls call was redundant and has been removed from the readJdbc.kt file. This simplifies the code of reading JDBC in the DataFrame-JDBC module, without altering functionality. --- .../main/kotlin/org/jetbrains/kotlinx/dataframe/io/readJdbc.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/dataframe-jdbc/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/readJdbc.kt b/dataframe-jdbc/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/readJdbc.kt index 7eac793dc..2b6d0e1b6 100644 --- a/dataframe-jdbc/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/readJdbc.kt +++ b/dataframe-jdbc/src/main/kotlin/org/jetbrains/kotlinx/dataframe/io/readJdbc.kt @@ -115,7 +115,6 @@ public fun DataFrame.Companion.readSqlTable( limit: Int = DEFAULT_LIMIT, inferNullability: Boolean = true, ): AnyFrame { - Infer.Nulls DriverManager.getConnection(dbConfig.url, dbConfig.user, dbConfig.password).use { connection -> return readSqlTable(connection, tableName, limit, inferNullability) }