Skip to content
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

Support for Microsoft SQL Server [JDBC] #1426

Merged
merged 3 commits into from
Mar 12, 2019
Merged

Conversation

Sanne
Copy link
Member

@Sanne Sanne commented Mar 12, 2019

I think this is ready to be used.

There are some follow up things to discuss, but I don't think these should block merging the feature:

  • how to better document JDBC drivers; e.g. where do we want some examples and describe known limitations.
  • how to automatically enable the right character sets, as native-image only includes the essential ones.

Copy link
Member

@gsmet gsmet left a comment

Choose a reason for hiding this comment

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

Nice work, glad to see this one tackled! I added 2 minor comments inline.

//Not strictly necessary when using Agroal, as it also registers
//any JDBC driver being configured explicitly through its configuration.
//We register it for the sake of people not using Agroal.
final String driverName = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
Copy link
Member

Choose a reason for hiding this comment

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

Can't you use the class itself to get the name? That would seem more future proof.

Copy link
Member Author

Choose a reason for hiding this comment

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

Tradeoff choices.

it's not like they can change the driver name without breaking a million apps either.. I prefer to not initialize the class.

<groupId>com.microsoft.azure</groupId>
<artifactId>adal4j</artifactId>
<version>1.6.3</version>
<exclusions>
Copy link
Member

Choose a reason for hiding this comment

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

If you want to exclude all its dependencies, you can use:

<groupId>*</groupId>
<artifactId>*</artifactId>

Copy link
Member Author

Choose a reason for hiding this comment

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

unfortunately it wasn't possible to exclude them all :(

@gsmet gsmet merged commit d6a047c into quarkusio:master Mar 12, 2019
@gsmet gsmet added this to the 0.12.0 milestone Mar 12, 2019
@Sanne Sanne deleted the mssql-v7.2.1 branch March 12, 2019 14:17
maxandersen pushed a commit to maxandersen/quarkus that referenced this pull request Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants