CB-835 Unique context ID

This commit is contained in:
serge-rider
2022-01-17 16:08:47 +03:00
parent b7e085bc2a
commit e0568016d4
@@ -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);