-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression when running DDL (CREATE SCHEMA or CREATE VIEW) in PreparedStatement #370
Comments
The SQL Server Profiler shows: JDBC driver version 6.1.0:declare @p1 int
set @p1=1
exec sp_prepexec @p1 output,NULL,N'create schema x'
select @p1 JDBC driver version 6.2.0:exec sp_executesql N'create schema x',NULL |
Possibly related: #166. See also comment on Stack Overflow by @gordthompson: https://stackoverflow.com/q/44950970/521799 |
@lukaseder Thanks for raising this issue. We are investigating this. |
Additional information: I saw the same results from SQL Profiler that @lukaseder reported. Subsequent fooling around with
That is, simply omitting the trailing NULL parameter seems to avoid the problem. |
Correctamundo, this is a bug. @v-afrafi I suggested a change in your fix (otherwise looks great!). |
I was hit by this bug, probably the version 6.2 should be withdrawn and marked as flawed. |
@jorsol @lukaseder @gordthompson Thank you for reporting this issue. We are in the process of releasing a hotfix soon, so in the meantime, we would suggest using the last driver version. |
Hi, as I see here https://github.com/Microsoft/mssql-jdbc/releases/tag/v6.2.1, v6.2.1 reverts some metadata caching commits previously done with #377. Is the metadata caching planned to be released/reintroduced after some more testing? |
Hi @mimmoz81 Thank you for your feedback regarding improvement of performance. |
@mimmoz81, adding to what @v-afrafi said, the issues found post release showed that even though we passed all of our regression tests we still have issues (I think mainly related to batch execution) which we need to make sure to get better test coverage for. The feature is available in the dev branch and you can for sure use this if it works for you given the caveat mentioned above. |
fixed by pr #388 . Thank you so much @lukaseder for creating this issue. |
Thank YOU for fixing it so quickly :) |
The following code:
... works with:
... but it no longer works with:
The error I'm getting is this:
A workaround is to resort to static statements. The same is true for
CREATE VIEW
statements:I think that's quite a significant regression. Other DDL statements might be affected as well.
The text was updated successfully, but these errors were encountered: