File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
exts/ext-database/src/241/main/kotlin/cc/unitmesh/database/util Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ object SQLExecutor {
121
121
}
122
122
123
123
private fun executeSql (project : Project , dataSource : RawDataSource , query : String ): String? {
124
- val future: java.util.concurrent. CompletableFuture <String > = java.util.concurrent. CompletableFuture ()
124
+ val future: CompletableFuture <String > = CompletableFuture ()
125
125
val localDs = com.intellij.database.util.DbImplUtilCore .getLocalDataSource(dataSource)
126
126
127
127
val session = com.intellij.database.console.session.DatabaseSessionManager .getSession(project, localDs)
@@ -140,7 +140,7 @@ object SQLExecutor {
140
140
object : com.intellij.database.datagrid.DataRequest .QueryRequest (session, query,
141
141
newConstraints(dataSource.dbms), null ) {}
142
142
messageBus.dataProducer.processRequest(request)
143
- return future.get()
143
+ return future.get(5 , java.util.concurrent. TimeUnit . SECONDS )
144
144
}
145
145
146
146
private fun createConsole (project : Project , file : LightVirtualFile ): JdbcConsole ? {
You can’t perform that action at this time.
0 commit comments