mirror of https://github.com/apache/druid.git
Create a copy of the shared JDBC context (#13049)
This commit is contained in:
parent
eff7c64228
commit
80b97ac24d
|
@ -97,7 +97,7 @@ public class DruidConnection
|
|||
final DruidJdbcStatement statement = new DruidJdbcStatement(
|
||||
connectionId,
|
||||
statementId,
|
||||
context,
|
||||
context.copy(),
|
||||
sqlStatementFactory
|
||||
);
|
||||
|
||||
|
@ -109,7 +109,7 @@ public class DruidConnection
|
|||
|
||||
public DruidJdbcPreparedStatement createPreparedStatement(
|
||||
SqlStatementFactory sqlStatementFactory,
|
||||
SqlQueryPlus sqlRequest,
|
||||
SqlQueryPlus sqlQueryPlus,
|
||||
final long maxRowCount)
|
||||
{
|
||||
final int statementId = statementCounter.incrementAndGet();
|
||||
|
@ -127,7 +127,7 @@ public class DruidConnection
|
|||
|
||||
@SuppressWarnings("GuardedBy")
|
||||
final PreparedStatement statement = sqlStatementFactory.preparedStatement(
|
||||
sqlRequest.withContext(context)
|
||||
sqlQueryPlus.withContext(context.copy())
|
||||
);
|
||||
final DruidJdbcPreparedStatement jdbcStmt = new DruidJdbcPreparedStatement(
|
||||
connectionId,
|
||||
|
|
Loading…
Reference in New Issue