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
I am trying to upgrade from Exposed however when bumping the version I'm seeing the following error in IntelliJ when I do:
Overload resolution ambiguity. All these functions match.
public final fun connect(datasource: ConnectionPoolDataSource, setupConnection: (Connection) → Unit = ..., manager: (Database) → TransactionManager = ...): Database defined in org.jetbrains.exposed.sql.Database.Companion
public final fun connect(datasource: DataSource, setupConnection: (Connection) → Unit = ..., manager: (Database) → TransactionManager = ...): Database defined in org.jetbrains.exposed.sql.Database.Companion
I'm using a org.apache.tomcat.jdbc.pool.DataSource which implements both javax.sql.DataSource and javax.sql.ConnectionPoolDataSource leading to the error. Casting it to one or the other doesn't appear to work.
I am trying to upgrade from Exposed however when bumping the version I'm seeing the following error in IntelliJ when I do:
I'm using a
org.apache.tomcat.jdbc.pool.DataSource
which implements both javax.sql.DataSource
andjavax.sql.ConnectionPoolDataSource
leading to the error. Casting it to one or the other doesn't appear to work.Reproducing behaviour
Here is how I'm using Exposed in
0.17.7
:How would you expect to use a PostgreSQL connection pool with Exposed? Is there a sample of this anywhere I can refer to?
The text was updated successfully, but these errors were encountered: