mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
CB-835 Unique context ID
This commit is contained in:
+1
-1
@@ -110,7 +110,7 @@ public class WebSQLProcessor {
|
||||
|
||||
@NotNull
|
||||
public WebSQLContextInfo createContext(String defaultCatalog, String defaultSchema) throws DBCException {
|
||||
String contextId = String.valueOf(this.contextId.incrementAndGet());
|
||||
String contextId = connection.getId() + ":" + this.contextId.incrementAndGet();
|
||||
WebSQLContextInfo contextInfo = new WebSQLContextInfo(this, contextId, defaultCatalog, defaultSchema);
|
||||
synchronized (contexts) {
|
||||
contexts.put(contextId, contextInfo);
|
||||
|
||||
Reference in New Issue
Block a user