Skip to content

Make Ms Jdbc driver more spring friendly - dev#9

Merged
AfsanehR-zz merged 6 commits intomicrosoft:devfrom
gstojsic:dev
Nov 25, 2016
Merged

Make Ms Jdbc driver more spring friendly - dev#9
AfsanehR-zz merged 6 commits intomicrosoft:devfrom
gstojsic:dev

Conversation

@gstojsic
Copy link
Copy Markdown
Contributor

This is in relation to issue: https://connect.microsoft.com/SQLServer/Feedback/Details/3100563
It would greatly simplify Tvp usage in the Spring environment.
Per you request the pull request is made from the dev branch.

@YoungGah YoungGah added Under Review Used for pull requests under review under testing labels Nov 22, 2016
Copy link
Copy Markdown

@YoungGah YoungGah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing change

@AfsanehR-zz
Copy link
Copy Markdown
Contributor

AfsanehR-zz commented Nov 24, 2016

Thank you for your contribution!
According to the sample you provided in this link, you need to add setSqlType method to pass the TVP name.
inputDataTable.setSqlType("[dbo].[MsDriverSqlType]");
Could you make changes to the method names to be more informative?

@gstojsic
Copy link
Copy Markdown
Contributor Author

@v-afrafi If I understood correctly you want me to rename the sqlType property I added to SQLServerDataTable. In the setStructured api from SQLServerPreparedStatement the parameter is named tvpName. Would that name be ok?

@AfsanehR-zz
Copy link
Copy Markdown
Contributor

sounds good, thanks!

@gstojsic
Copy link
Copy Markdown
Contributor Author

Renamed sqlType to tvpName as requested.

@AfsanehR-zz AfsanehR-zz merged commit ef653c5 into microsoft:dev Nov 25, 2016
@AfsanehR-zz AfsanehR-zz removed the Under Review Used for pull requests under review label Nov 25, 2016
rene-ye added a commit that referenced this pull request Jan 31, 2018
lilgreenbird pushed a commit to lilgreenbird/mssql-jdbc that referenced this pull request Aug 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants