Repository navigation
Conversation
…ixes OHDSI#2528) The SQL Server JDBC driver executes a Statement batch as a single T-SQL batch, so when the same analysis SQL (with temp tables) is run several times within one batch, re-creating a temp table that was dropped earlier in the batch fails with "There is already an object named '#...' in the database". This surfaces in pathway analyses with multiple target cohorts. Treat jdbc:sqlserver connections like Impala and IRIS and execute the statements one by one instead of batching them. Adds CancelableJdbcTemplateTest covering the SQL Server and batched paths.
|
There seems to be a git action failure when it tries to run the build action. Can you confirm behavior on your side? |
|
|
Edit: saw your other PR we'll let that go through then merge master to this, then see if PR resolves. |
…fixes #2528)
The SQL Server JDBC driver executes a Statement batch as a single T-SQL batch, so when the same analysis SQL (with temp tables) is run several times within one batch, re-creating a temp table that was dropped earlier in the batch fails with "There is already an object named '#...' in the database". This surfaces in pathway analyses with multiple target cohorts.
Treat jdbc:sqlserver connections like Impala and IRIS and execute the statements one by one instead of batching them.
Adds CancelableJdbcTemplateTest covering the SQL Server and batched paths.