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

Update connectionResiliency branch with the changes from dev branch #643

Merged
merged 1,020 commits into from
Mar 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1020 commits
Select commit Hold shift + click to select a range
2a39ec0
replace [ with '
xiangyushawn Sep 12, 2017
78808ab
use PreparedStatement to populate temp table #fkeys_results
xiangyushawn Sep 12, 2017
7a143b9
change String to Int for some columns
xiangyushawn Sep 12, 2017
d1eb934
refactor a bit
xiangyushawn Sep 12, 2017
c7fb469
Add connection properties for specifying custom TrustManager (#74)
sehrope Sep 13, 2017
5ee3034
Merge pull request #488 from v-afrafi/fixExceptionforNull
AfsanehR-zz Sep 14, 2017
252159e
Merge pull request #485 from v-afrafi/datatypeConverter
AfsanehR-zz Sep 14, 2017
7fb24f2
Merge pull request #490 from v-xiangs/sp_fkeys-fix
xiangyushawn Sep 15, 2017
9272e40
Merge pull request #473 from sehrope/cleanup-travis-appveyor
AfsanehR-zz Sep 18, 2017
e6f66e9
Merge pull request #465 from peterbae/classloader_leak_314
peterbae Sep 20, 2017
6789eb6
recognize CallableStatement parameter names with leading '@'
gordthompson Sep 20, 2017
8b261f9
Merge pull request #469 from JamieMagee/explicit-extends-object
cheenamalhotra Sep 21, 2017
f56f198
Merge pull request #470 from JamieMagee/redundant-if-statement
cheenamalhotra Sep 21, 2017
377f77a
Merge pull request #471 from JamieMagee/unnecessary-return
cheenamalhotra Sep 21, 2017
75d60b1
Merge pull request #472 from JamieMagee/simplify-boolean-expressions
cheenamalhotra Sep 21, 2017
4cc67a1
Merge pull request #487 from v-afrafi/removal_of_deprecated_APIs
AfsanehR-zz Sep 21, 2017
fbf569c
Revert "removing javax.xml.bind package dependency "
AfsanehR-zz Sep 21, 2017
44a1cfe
Merge pull request #498 from Microsoft/revert-485-datatypeConverter
AfsanehR-zz Sep 21, 2017
0047c3b
Revert "Removing deprecated APIs in java 9"
AfsanehR-zz Sep 21, 2017
24dfd49
Merge pull request #499 from Microsoft/revert-487-removal_of_deprecat…
AfsanehR-zz Sep 22, 2017
0b410f0
Replace manual array copy
JamieMagee Sep 22, 2017
16bd589
Remove redundant String.toString()
JamieMagee Sep 22, 2017
d94cccc
Replace bare literals
JamieMagee Sep 22, 2017
4224a6f
release process PR
peterbae Sep 22, 2017
139ea00
Revert "Remove redundant if/else statements"
AfsanehR-zz Sep 22, 2017
0ff826b
Merge pull request #505 from Microsoft/revert-470-redundant-if-statement
AfsanehR-zz Sep 22, 2017
270603d
remove PR 470 from changelist, and modify the readme file
peterbae Sep 22, 2017
7406b47
remove preview from pom
peterbae Sep 22, 2017
d1cb963
make urls work
peterbae Sep 22, 2017
33ff0e2
Merge pull request #504 from peterbae/6.3.3-preview-release
peterbae Sep 22, 2017
edc794c
Merge pull request #507 from Microsoft/dev
peterbae Sep 23, 2017
40edfde
removing java.xml.bind dependency
AfsanehR-zz Sep 25, 2017
f8696c5
remove developer name from POM file
xiangyushawn Sep 25, 2017
e618ade
Merge pull request #508 from v-xiangs/remove-developer-name
xiangyushawn Sep 25, 2017
380ab87
removed dependency of java.xml.bind and updated pom file with latest …
AfsanehR-zz Sep 25, 2017
04e4a0b
disabled appveyor and updated travic to use java 9
AfsanehR-zz Sep 25, 2017
0b094dc
Fixed NoSuchMethodError when compiling with Java 9 but running on jav…
AfsanehR-zz Sep 25, 2017
022d747
add support for JDBC 4.3 APIs and throw unsupported exceptions for th…
AfsanehR-zz Sep 25, 2017
98f9f65
fixed the javadoc warnings.
AfsanehR-zz Sep 25, 2017
7ed782d
update SQLServerJdbc41 to throw unsupportedError for 4.3 APIs
AfsanehR-zz Sep 25, 2017
6f262f8
cleanup tables after test
AfsanehR-zz Sep 25, 2017
328feec
more cleaning of tables and procedures
AfsanehR-zz Sep 25, 2017
9f2ef21
Merge pull request #386 from v-xiangs/newdev-populate-Table-With-Prep…
xiangyushawn Sep 25, 2017
e55a13c
add snapshot to pom.xml
peterbae Sep 26, 2017
1341a9f
Make it 6.3.4
peterbae Sep 26, 2017
05d0388
Merge pull request #510 from peterbae/6.3.3-preview-release
peterbae Sep 26, 2017
e77a046
Implement checkDuplicateColumnName to check duplicate columns
peterbae Sep 26, 2017
89c92b7
Fix for EnablePrepareOnFirstPreparedStatementCall with statement pooling
TobiasSQL Sep 27, 2017
8f69956
Revert "Implement checkDuplicateColumnName to check duplicate columns"
peterbae Sep 27, 2017
f8e89df
Revert "Revert "Implement checkDuplicateColumnName to check duplicate…
peterbae Sep 27, 2017
91a3eea
Apply same logic for TVP
peterbae Sep 27, 2017
b42c200
works for AAD integrated on driver side changes
xiangyushawn Sep 29, 2017
3ac6077
update changelog and readme for dev branch
xiangyushawn Sep 29, 2017
fe83139
use try with resources
AfsanehR-zz Oct 2, 2017
7f18810
add another try-with-resource
AfsanehR-zz Oct 2, 2017
d778a6f
drop a not needed method
AfsanehR-zz Oct 2, 2017
ada51de
try-with-resources implementation commit 1
cheenamalhotra Oct 2, 2017
5b2657c
Update .travis.yml
cheenamalhotra Oct 2, 2017
2bb154a
Updating travis build script to use :2017-latest tag for SQL Server d…
cheenamalhotra Oct 2, 2017
7efd39f
Update .travis.yml
cheenamalhotra Oct 2, 2017
d15c84d
Update docker run command as well
cheenamalhotra Oct 2, 2017
55ba786
Merge pull request #519 from cheenamalhotra/dev
cheenamalhotra Oct 3, 2017
052b4b5
Fix AESetup issue with dropCEK
cheenamalhotra Oct 3, 2017
d95575b
remove hardcoded username from exception message
xiangyushawn Oct 3, 2017
7fd1c98
Merge pull request #323 from v-xiangs/Callable42-Test
xiangyushawn Oct 3, 2017
a94cb96
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into cl…
AfsanehR-zz Oct 3, 2017
5ef8dea
try-with-resources implementation commit 2
cheenamalhotra Oct 3, 2017
889f160
Merge branch 'dev' into JavaImprovements
cheenamalhotra Oct 3, 2017
480f923
Merge pull request #518 from v-xiangs/update-text-files
xiangyushawn Oct 4, 2017
1e254e3
Merge pull request #521 from Microsoft/dev
xiangyushawn Oct 4, 2017
55641c8
avoid creating connection for termination
AfsanehR-zz Oct 5, 2017
8c0ebf2
remove null check and change Set object name
peterbae Oct 5, 2017
b00b377
Merge pull request #509 from v-afrafi/cleanupTables
AfsanehR-zz Oct 5, 2017
e2ec02e
tweak to preserve original parameter name for exception message
gordthompson Oct 6, 2017
d4eadd6
Check for "Account Locked" SQL Exception 18486 while connecitng to SQ…
cheenamalhotra Oct 6, 2017
4a1409a
Updated comment for Locked User Account in SQLServerConnection.java
cheenamalhotra Oct 6, 2017
adf10ea
Refactoring the logic for checking duplicate column into Util class a…
peterbae Oct 6, 2017
e5f7c6c
Merge pull request #501 from JamieMagee/redundant-String-toString
AfsanehR-zz Oct 7, 2017
b8daa42
Merge pull request #495 from gordthompson/allow-at-sign-prefixed-para…
AfsanehR-zz Oct 7, 2017
4b93851
Remove explicit interface reference
JamieMagee Oct 10, 2017
de471e7
Merge branch 'dev' into JavaImprovements
cheenamalhotra Oct 10, 2017
eb7efe3
Modified bvtTests to be able to test resultSet closing explicitly.
cheenamalhotra Oct 10, 2017
e7b68fd
Merge pull request #520 from cheenamalhotra/JavaImprovements
cheenamalhotra Oct 10, 2017
7a0fe66
Merge pull request #514 from peterbae/SQLServerDataTableImprovement-497
peterbae Oct 11, 2017
06cb754
Merge pull request #474 from maiken2051/master
cheenamalhotra Oct 12, 2017
92aa789
updates gradle dependencies
newnewcoder Oct 16, 2017
e51ea73
Merge pull request #502 from JamieMagee/replace-bare-literals
AfsanehR-zz Oct 17, 2017
fba39c8
Merge pull request #500 from JamieMagee/manual-array-copy
peterbae Oct 17, 2017
94ae4bf
6.3.4 release (#528)
ulvii Oct 18, 2017
16a76c7
Merge dev to master for 6.3.4-preview release (#529)
ulvii Oct 19, 2017
a10b9d7
Add 6.3.5-SNAPSHOT to pom file (#530)
ulvii Oct 19, 2017
f52e6c7
Merge pull request #526 from newnewcoder/dev
xiangyushawn Oct 24, 2017
9d604ee
cleanup
xiangyushawn Oct 24, 2017
c399a60
remove error message when running AAD integrated on non-windows OS
xiangyushawn Oct 24, 2017
db5f09f
read user name from kerberos TGT client name
xiangyushawn Oct 26, 2017
1cc1170
add error message when Future's outcome has no AuthenticationResult b…
xiangyushawn Oct 26, 2017
5693c39
revise the way that pom file uses version number
xiangyushawn Oct 27, 2017
c231b11
add -preview
xiangyushawn Oct 27, 2017
5c75147
Merge pull request #535 from v-xiangs/xiangs-update-POM-file
xiangyushawn Oct 27, 2017
93e0b18
Fix for static logger member in abstract class 'SQLServerClobBase'
cheenamalhotra Nov 1, 2017
5940cfc
fix handle not fund bug for metadata caching
xiangyushawn Nov 3, 2017
97a5cfc
fix tests
xiangyushawn Nov 3, 2017
9ffd521
fix failures in requesthandling test
xiangyushawn Nov 4, 2017
0691598
Version Update Configuration Rules.
nsidhaye Nov 4, 2017
74e12a9
Added `outdated-dependencies.txt` in .gitignore
nsidhaye Nov 5, 2017
2cbd065
remove prepStmtHandle = -1 which disables metadata caching, and added…
xiangyushawn Nov 6, 2017
ab68580
remove fix for BatchTriggerTest, it breaks PreparedStatementTest
xiangyushawn Nov 6, 2017
5c74751
fix hasPreparedStatementHandle()
xiangyushawn Nov 6, 2017
9a54b6b
add the fix for batch trigger
xiangyushawn Nov 6, 2017
705ebc1
fix "handle is not valid" error. If context changed once, metadata ca…
xiangyushawn Nov 7, 2017
3ccdf0f
clear cached prepared statement handle when pooled connection is removed
xiangyushawn Nov 8, 2017
8559a33
merge the fix of batch trigger
xiangyushawn Nov 9, 2017
1839edc
change back the test to catch BatchUpdateException exception
xiangyushawn Nov 9, 2017
875f62a
disable metadata caching after switching database on connection directly
xiangyushawn Nov 9, 2017
df89f02
process all batch first, then throw batch exception is there is one, …
xiangyushawn Nov 11, 2017
0046d3c
fix for 477
peterbae Nov 15, 2017
4be9856
Merge pull request #537 from cheenamalhotra/staticLoggerQuery
cheenamalhotra Nov 15, 2017
be14e88
Merge pull request #522 from cheenamalhotra/throwAccountLockedEx
cheenamalhotra Nov 15, 2017
c006af2
add check for updatable resultsets.
peterbae Nov 16, 2017
1992eed
re-enable metadata caching after context change
xiangyushawn Nov 17, 2017
7e1f663
Merge pull request #543 from v-xiangs/fix-metadata-cache-2
xiangyushawn Nov 17, 2017
6607087
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into te…
xiangyushawn Nov 17, 2017
8d6d446
Updated Changelog for 6.3.5 Release
cheenamalhotra Nov 17, 2017
8f15e20
Merge pull request #554 from cheenamalhotra/dev
cheenamalhotra Nov 17, 2017
62227e3
Merge branch 'master' into dev
cheenamalhotra Nov 17, 2017
91e7d8a
Update pom.xml
cheenamalhotra Nov 17, 2017
d69e01b
Updating POM File for next preview snapshot
cheenamalhotra Nov 20, 2017
b247869
Merge branch 'dev' into dev
cheenamalhotra Nov 20, 2017
a940fbc
Merge pull request #557 from cheenamalhotra/dev
cheenamalhotra Nov 21, 2017
21fde63
use preparedStatementHandleCache with database name
xiangyushawn Nov 21, 2017
a9b6a7c
retrieve db name without check connection
xiangyushawn Nov 22, 2017
3a60d34
Adding changes to logger implementation for avoiding logger lookup
cheenamalhotra Nov 23, 2017
8004cdf
if password is null, it means AAD integrated auth
xiangyushawn Nov 24, 2017
40a9bf5
update ADAL4J version to 1.3.0 and also add it into readme file based…
xiangyushawn Nov 24, 2017
1c389e8
remove apache code for encoder and remove 4.1 compaitble jars
AfsanehR-zz Nov 27, 2017
8ef32d8
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into Java9
AfsanehR-zz Nov 27, 2017
6f9fec6
Merge pull request #565 from Microsoft/dev
AfsanehR-zz Nov 27, 2017
778d3ee
updated dependency versions in pom file for jdbc 4.3 branch
AfsanehR-zz Nov 28, 2017
8344415
Merge pull request #564 from v-xiangs/update-dependencies
xiangyushawn Nov 29, 2017
8c7f465
Merge pull request #566 from v-afrafi/Java9
AfsanehR-zz Nov 29, 2017
ba22e94
Merge pull request #561 from v-xiangs/v-xiangs-handle-DBName
xiangyushawn Nov 29, 2017
27b9414
update samples in JDBC 4.3 branch + change the the junit.platform.ver…
AfsanehR-zz Nov 30, 2017
b1dbacc
Merge pull request #570 from v-afrafi/Java9
AfsanehR-zz Nov 30, 2017
01e8013
Merge pull request #513 from Microsoft/metadataCaching
xiangyushawn Nov 30, 2017
907e1a6
Merge pull request #428 from v-xiangs/test-agaist-both-2008-and-2016
xiangyushawn Dec 1, 2017
a8ed6f6
Merge pull request #552 from peterbae/github-477
peterbae Dec 5, 2017
9fe90f7
Merge pull request #563 from cheenamalhotra/staticLogger
cheenamalhotra Dec 5, 2017
f1674af
update sendTimeAsDateTime property to false.
AfsanehR-zz Dec 5, 2017
7ec7356
remove deprecated APIs
AfsanehR-zz Dec 6, 2017
823f08e
Fix issue with rowDeleted() causing issues with testing
peterbae Dec 6, 2017
4c90c8e
Revert "Fix issue with rowDeleted() causing issues with testing"
peterbae Dec 6, 2017
557fdf3
Reverting PR 563, due to test failures
peterbae Dec 6, 2017
6fdab44
6.3.6 preview release
peterbae Dec 7, 2017
ab733d3
Merge pull request #574 from peterbae/github-477
peterbae Dec 7, 2017
2c357ce
Merge pull request #575 from peterbae/peter-6.3.6-release
peterbae Dec 7, 2017
3a21346
add more catch blocks for new getDeclaredConstructor method.
AfsanehR-zz Dec 7, 2017
9540cce
update Travis script with official support of jdk 9
AfsanehR-zz Dec 8, 2017
24486c9
fix comment
AfsanehR-zz Dec 8, 2017
47ddc43
update readme file
AfsanehR-zz Dec 8, 2017
7a2bbef
Merge pull request #577 from v-afrafi/Java9
AfsanehR-zz Dec 11, 2017
855e9fe
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into AA…
xiangyushawn Dec 11, 2017
23aac33
make recovery work after ms dtc restart
AfsanehR-zz Dec 12, 2017
e601b81
use javax.security.auth.kerberos instead of sun.security.krb5.Credent…
xiangyushawn Dec 12, 2017
8070803
add log
xiangyushawn Dec 13, 2017
755b9c6
upadate comments and remove an unused import
AfsanehR-zz Dec 13, 2017
83ec122
remove JNI functions for AAD integrated auth
xiangyushawn Dec 13, 2017
6ccf201
update the ADAL4J version to 1.4.0 in pom, this will break the compil…
xiangyushawn Dec 13, 2017
3e475d9
Stress test changes - the static meodifier was causing concurrency is…
peterbae Dec 13, 2017
5846c8f
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into JD…
AfsanehR-zz Dec 15, 2017
29a8a3a
Merge pull request #586 from v-afrafi/JDBC4.3
cheenamalhotra Dec 15, 2017
4bd1e48
Merge pull request #584 from peterbae/stress-test
peterbae Dec 15, 2017
84fb8c5
Merge pull request #587 from Microsoft/dev
cheenamalhotra Dec 15, 2017
257d6e1
use wrapper for sharding APIs
AfsanehR-zz Dec 18, 2017
6a833eb
fix another issue with Java 9 regarding bulkcopy connection check
AfsanehR-zz Dec 18, 2017
4b28d70
added another fix
AfsanehR-zz Dec 19, 2017
19d8a51
added cast to Buffer
AfsanehR-zz Dec 19, 2017
99868e6
change Base64.getEncoder().encodeToString()
AfsanehR-zz Dec 20, 2017
b9fc801
Make sure the right wrapper is used for 4.2 and above.
AfsanehR-zz Dec 20, 2017
8faa912
make SQLServerConnection43 throw SQLServerException for new Unsupport…
AfsanehR-zz Dec 20, 2017
9f3dedd
Merge pull request #589 from v-afrafi/JDBC4.3_Wrapper
AfsanehR-zz Dec 21, 2017
9d33494
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into dev
AfsanehR-zz Dec 21, 2017
db760b5
update readme for AKV
xiangyushawn Dec 29, 2017
daa647c
& is not allowed in error strings or parsing fails.
peterbae Jan 2, 2018
16d3bb0
Merge pull request #594 from peterbae/localization-jdbc4.3
peterbae Jan 3, 2018
877cd7a
update the dtc_xa_interface to use the correct flag for xa_start
AfsanehR-zz Jan 4, 2018
598292b
Merge pull request #591 from v-xiangs/AKV-read-me
cheenamalhotra Jan 5, 2018
2791904
fixed random assertion error
rene-ye Jan 5, 2018
bf28544
spacing
rene-ye Jan 5, 2018
bef12b2
logger security fix
rene-ye Jan 5, 2018
98182f9
sonarQube fixes
rene-ye Jan 5, 2018
2470563
Merge pull request #1 from Microsoft/dev
rene-ye Jan 5, 2018
697757b
Merge pull request #572 from v-afrafi/sendTimeAsDateTime_property
cheenamalhotra Jan 12, 2018
0cd1a72
Merge pull request #581 from v-afrafi/xaFix
cheenamalhotra Jan 12, 2018
a93737d
Merge branch 'AAD-integrated-investigation' of https://github.com/v-x…
AfsanehR-zz Jan 12, 2018
b567e72
use dll authentication when DLL is loaded and windows is the operatin…
AfsanehR-zz Jan 13, 2018
d96f978
Merge pull request #7 from Microsoft/dev
rene-ye Jan 15, 2018
d6080c8
Added XML header
cheenamalhotra Jan 17, 2018
7a7a8b4
Policheck issue fixes
cheenamalhotra Jan 18, 2018
8141c69
Merge pull request #606 from cheenamalhotra/dev
cheenamalhotra Jan 18, 2018
ecf505f
Merge pull request #599 from rene-ye/sonarQube
cheenamalhotra Jan 18, 2018
4c361c8
Merge pull request #598 from rene-ye/loggerSecurity
cheenamalhotra Jan 18, 2018
5d15edb
Merge pull request #597 from rene-ye/JavaAssertionError
cheenamalhotra Jan 18, 2018
c1f7ffd
Merge pull request #9 from Microsoft/dev
rene-ye Jan 18, 2018
ba52c78
Merge remote-tracking branch 'upstream/dev' into dev
nsidhaye Jan 20, 2018
e79f964
Updated as per review comments
nsidhaye Jan 20, 2018
5669308
Merge branch 'dev' into JDBC4.3
cheenamalhotra Jan 23, 2018
2e5d9d3
Merge pull request #603 from v-afrafi/AADIntegrationAuth
AfsanehR-zz Jan 23, 2018
82b43b0
Merge pull request #541 from nsidhaye/dev
cheenamalhotra Jan 23, 2018
e0e70a4
Merge pull request #601 from Microsoft/JDBC4.3
AfsanehR-zz Jan 23, 2018
4fef240
Update POM XML with SNAPSHOT Tag
cheenamalhotra Jan 27, 2018
5856172
Merge pull request #613 from cheenamalhotra/dev
cheenamalhotra Jan 27, 2018
a6eee22
change back to retryLogic and change the default of prepared statemen…
AfsanehR-zz Jan 29, 2018
2c2a224
Merge pull request #12 from Microsoft/dev
rene-ye Jan 30, 2018
69edc7b
check if statementPooling is enabled for all retry logics
AfsanehR-zz Jan 30, 2018
4292be9
Revert "update sendTimeAsDateTime property to false."
rene-ye Jan 31, 2018
d44a5f0
Merge pull request #615 from rene-ye/preSendTime
rene-ye Jan 31, 2018
b8e9ff9
add the setter and getter methods for disableStatementPooling property
AfsanehR-zz Jan 31, 2018
6c79be8
Merge pull request #616 from Microsoft/preSendTime
cheenamalhotra Jan 31, 2018
af76bfc
move same code in a function.
AfsanehR-zz Jan 31, 2018
fee85b2
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into re…
AfsanehR-zz Jan 31, 2018
d6d8310
update for jdk9
AfsanehR-zz Jan 31, 2018
a237ebe
prepare cache in setDisableStatementPooling()
AfsanehR-zz Jan 31, 2018
63ab78f
a small fix
AfsanehR-zz Jan 31, 2018
dbefa1c
fixed the double insertion issue with retry
AfsanehR-zz Jan 31, 2018
870e853
fixed some review comments and updated test to use raiseError
AfsanehR-zz Feb 1, 2018
f523ca9
added a fix with connection property
AfsanehR-zz Feb 1, 2018
6ed48e2
added unit Tests
AfsanehR-zz Feb 1, 2018
12d5eae
Merge pull request #619 from v-afrafi/appveyor
cheenamalhotra Feb 9, 2018
e221b32
Revert back needsPrepare check in retryBasedOnFailedReuseOfCachedHandle
cheenamalhotra Feb 14, 2018
9ae0843
Remove unwanted method parameter
cheenamalhotra Feb 14, 2018
a64b9ef
Merge pull request #618 from AfsanehR/retryLogic
cheenamalhotra Feb 15, 2018
74dd4c2
Update changelog and driver version for RTW release
cheenamalhotra Feb 15, 2018
89c552b
Minor Fix
cheenamalhotra Feb 15, 2018
77ff9de
Minor change to update to jre9
cheenamalhotra Feb 15, 2018
ff1f049
Added needsPrepare Check and removed error code 99586 check
cheenamalhotra Feb 15, 2018
ba2460c
Added check for needsPrepare and removed 99586 check + Moved NeedsPre…
cheenamalhotra Feb 15, 2018
0eb0a61
Moved 'needsPrepare' to local variable.
cheenamalhotra Feb 15, 2018
ea723f6
Defaulting needsPrepare to true.
cheenamalhotra Feb 16, 2018
782dd1b
Merge pull request #629 from cheenamalhotra/retry-fix
cheenamalhotra Feb 16, 2018
d6a4d35
Moving JDK9 support to added section
cheenamalhotra Feb 16, 2018
9277451
Merge pull request #626 from cheenamalhotra/dev
cheenamalhotra Feb 16, 2018
c73f5ba
Update SNAPSHOT for upcoming preview release.
cheenamalhotra Feb 28, 2018
066b3c3
Merge pull request #639 from cheenamalhotra/dev
cheenamalhotra Feb 28, 2018
a488f8c
Merge branch 'tempConnRes' into dev
ulvii Mar 1, 2018
ad11c10
Merge pull request #4 from ulvii/dev
ulvii Mar 1, 2018
5730606
Fix conflicts
ulvii Mar 1, 2018
08dd253
Revert "Updating connectionResiliency branch with the changes from de…
ulvii Mar 5, 2018
bc2acb5
Merge pull request #5 from ulvii/tempConnRes
ulvii Mar 5, 2018
471d817
Fix a few merging issues
ulvii Mar 7, 2018
be4b748
Disabling 2 more tests, Fixing the issues with Pooling cache size
ulvii Mar 7, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ local.properties
.settings/
.gradle/
.loadpath
outdated-dependencies.txt
pom.xml.versionBackup

# External tool builders
.externalToolBuilders/
Expand Down
13 changes: 9 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@

language: java
jdk:
- oraclejdk8
- oraclejdk9

addons:
apt:
packages:
- oracle-java9-installer

services:
- docker

Expand All @@ -29,7 +34,7 @@ install:
- keytool -importkeystore -destkeystore clientcert.jks -deststorepass password -srckeystore identity.p12 -srcstoretype PKCS12 -srcstorepass password
- keytool -list -v -keystore clientcert.jks -storepass "password" > JavaKeyStore.txt
- cd ..
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Pbuild41
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Pbuild43
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Pbuild42

before_script:
Expand All @@ -39,6 +44,6 @@ before_script:
script:
- docker ps -a

##Test for JDBC Specification 41 & 42 and submit coverage report.
- mvn test -B -Pbuild41 jacoco:report && bash <(curl -s https://codecov.io/bash) -cF JDBC41
##Test for JDBC Specification 43 & 42 and submit coverage report.
- mvn test -B -Pbuild41 jacoco:report && bash <(curl -s https://codecov.io/bash) -cF JDBC43
- mvn test -B -Pbuild42 jacoco:report && bash <(curl -s https://codecov.io/bash) -cF JDBC42
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,38 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/)

## [6.4.0] Stable Release
### Added
- Support added for AAD Integrated Authentication with ADAL4J on Windows/Linux/Mac OS [#603](https://github.com/Microsoft/mssql-jdbc/pull/603)
- Enable Recover after MSDTC is restarted [#581](https://github.com/Microsoft/mssql-jdbc/pull/581)
- Added Version Update configuration rules to project [#541](https://github.com/Microsoft/mssql-jdbc/pull/541)
- JDK 9 Compatibility + JDBC 4.3 API support added to the driver [#601 (https://github.com/Microsoft/mssql-jdbc/pull/601)

### Fixed Issues
- Re-introduced Retry Logic for Prepared Statement Caching implementation and remove detect change context function [#618](https://github.com/Microsoft/mssql-jdbc/pull/618) and [#620](https://github.com/Microsoft/mssql-jdbc/pull/620)
- Fixes for SonarQube Reported issues [#599](https://github.com/Microsoft/mssql-jdbc/pull/599)
- Fixes for Random Assertion Errors [#597](https://github.com/Microsoft/mssql-jdbc/pull/597)

### Changed
- Updated Appveyor to use JDK9 building driver and running tests [#619](https://github.com/Microsoft/mssql-jdbc/pull/619)
- JDK 7 compilation support removed from the driver [#601](https://github.com/Microsoft/mssql-jdbc/pull/601)

## [6.3.6] Preview Release
### Added
- Added support for using database name as part of the key for handle cache [#561](https://github.com/Microsoft/mssql-jdbc/pull/561)
- Updated ADAL4J version to 1.3.0 and also added it into README file [#564](https://github.com/Microsoft/mssql-jdbc/pull/564)

### Fixed Issues
- Fixed issues with static loggers being set by every constructor invocation [#563](https://github.com/Microsoft/mssql-jdbc/pull/563)

## [6.3.5] Preview Release
### Added
- Added handle for Account Locked Exception 18486 during login in SQLServerConnection [#522](https://github.com/Microsoft/mssql-jdbc/pull/522)

### Fixed Issues
- Fixed the issues with Prepared Statement Metadata Caching implementation [#543](https://github.com/Microsoft/mssql-jdbc/pull/543)
- Fixed issues with static logger member in abstract class 'SQLServerClobBase' [#537](https://github.com/Microsoft/mssql-jdbc/pull/537)

## [6.3.4] Preview Release
### Added
- Added new ThreadGroup creation to prevent IllegalThreadStateException if the underlying ThreadGroup has been destroyed. [#474](https://github.com/Microsoft/mssql-jdbc/pull/474)
Expand Down
44 changes: 33 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,19 @@ What's coming next? We will look into adding a more comprehensive set of tests,

## Build
### Prerequisites
* Java 8
* Java 9
* [Maven](http://maven.apache.org/download.cgi)
* An instance of SQL Server or Azure SQL Database that you can connect to.

### Build the JAR files
Maven builds automatically trigger a set of verification tests to run. For these tests to pass, you will first need to add an environment variable in your system called `mssql_jdbc_test_connection_properties` to provide the [correct connection properties](https://msdn.microsoft.com/en-us/library/ms378428(v=sql.110).aspx) for your SQL Server or Azure SQL Database instance.

To build the jar files, you must use Java 8 with Maven. You can choose to build a JDBC 4.1 compliant jar file (for use with JRE 7) and/or a JDBC 4.2 compliant jar file (for use with JRE 8).
To build the jar files, you must use Java 9 with Maven. You can choose to build a JDBC 4.3 compliant jar file (for use with JRE 9) and/or a JDBC 4.2 compliant jar file (for use with JRE 8).

* Maven:
1. If you have not already done so, add the environment variable `mssql_jdbc_test_connection_properties` in your system with the connection properties for your SQL Server or SQL DB instance.
2. Run one of the commands below to build a JDBC 4.1 compliant jar or JDBC 4.2 compliant jar in the \target directory.
* Run `mvn install -Pbuild41`. This creates JDBC 4.1 compliant jar in \target directory
2. Run one of the commands below to build a JDBC 4.3 compliant jar or JDBC 4.2 compliant jar in the \target directory.
* Run `mvn install -Pbuild43`. This creates JDBC 4.3 compliant jar in \target directory
* Run `mvn install -Pbuild42`. This creates JDBC 4.2 compliant jar in \target directory

**NOTE**: Beginning release v6.1.7, we will no longer be maintaining the existing [Gradle build script](build.gradle) and it will be left in the repository for reference. Please refer to issue [#62](https://github.com/Microsoft/mssql-jdbc/issues/62) for this decision.
Expand Down Expand Up @@ -80,7 +80,7 @@ We're now on the Maven Central Repository. Add the following to your POM file to
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.2.2.jre8</version>
<version>6.4.0.jre9</version>
</dependency>
```
The driver can be downloaded from the [Microsoft Download Center](https://go.microsoft.com/fwlink/?linkid=852460).
Expand All @@ -90,7 +90,7 @@ To get the latest preview version of the driver, add the following to your POM f
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.3.4.jre8-preview</version>
<version>6.3.6.jre8-preview</version>
</dependency>
```

Expand All @@ -100,8 +100,8 @@ To get the latest preview version of the driver, add the following to your POM f
This project has following dependencies:

Compile Time:
- `azure-keyvault` : Azure Key Vault Provider for Always Encrypted feature (optional)
- `adal4j` : Azure ActiveDirectory Library for Java for Azure Active Directory Authentication feature (optional)
- `azure-keyvault` : Azure Key Vault Provider for Always Encrypted Azure Key Vault feature (optional)
- `adal4j` : Azure ActiveDirectory Library for Java for Azure Active Directory Authentication feature and Azure Key Vault feature (optional)

Test Time:
- `junit:jar` : For Unit Test cases.
Expand All @@ -115,15 +115,37 @@ mvn dependency:tree
### Azure Key Vault and Azure Active Directory Authentication Dependencies
Projects that require either of the two features need to explicitly declare the dependency in their pom file.

***For Example:*** If you are using *Azure Key Vault feature* then you need to redeclare *azure-keyvault* dependency in your project's pom file. Please see the following snippet:
***For Example:*** If you are using *Azure Active Directory Authentication feature* then you need to redeclare *adal4j* dependency in your project's pom file. Please see the following snippet:
```xml
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.3.4.jre8-preview</version>
<version>6.4.0.jre9</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>adal4j</artifactId>
<version>1.4.0</version>
</dependency>
```

***For Example:*** If you are using *Azure Key Vault feature* then you need to redeclare *azure-keyvault* dependency and *adal4j* dependency in your project's pom file. Please see the following snippet:
```xml
<dependency>
<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.4.0.jre9</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>adal4j</artifactId>
<version>1.4.0</version>
</dependency>

<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-keyvault</artifactId>
Expand All @@ -138,7 +160,7 @@ We love contributions from the community. To help improve the quality of our co
Thank you!

## Guidelines for Reporting Issues
We appreciate you taking the time to test the driver, provide feedback and report any issues. It would be extremely helpful if you:
We appreciate you taking the time to test the driver, provide feedback and report any issues. It would be extremely helpful if you:

- Report each issue as a new issue (but check first if it's already been reported)
- Try to be detailed in your report. Useful information for good bug reports include:
Expand Down
17 changes: 10 additions & 7 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
version: '{build}'

init:
- cmd: net start MSSQL$%SQL_Instance%

environment:
mssql_jdbc_test_connection_properties: jdbc:sqlserver://localhost:1433;instanceName=SQL2016;databaseName=master;username=sa;password=Password12!;
JAVA_HOME: C:\Program Files\Java\jdk9
mssql_jdbc_test_connection_properties: jdbc:sqlserver://localhost:1433;instanceName=%SQL_Instance%;databaseName=master;username=sa;password=Password12!;

matrix:
- JAVA_HOME: C:\Program Files\Java\jdk1.8.0
- SQL_Instance: SQL2008R2SP2
- SQL_Instance: SQL2016

services:
- mssql2016

install:
- ps: Write-Host 'Installing JCE with powershell'
- ps: cd AppVeyorJCE
Expand All @@ -29,9 +32,9 @@ build_script:
- keytool -importkeystore -srckeystore cert.pfx -srcstoretype pkcs12 -destkeystore clientcert.jks -deststoretype JKS -srcstorepass password -deststorepass password
- keytool -list -v -keystore clientcert.jks -storepass "password" > JavaKeyStore.txt
- cd..
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Pbuild41
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Pbuild43
- mvn install -DskipTests=true -Dmaven.javadoc.skip=true -B -V -Pbuild42

test_script:
- mvn test -B -Pbuild41
- mvn test -B -Pbuild43
- mvn test -B -Pbuild42
26 changes: 26 additions & 0 deletions maven-version-rules.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<ruleset xmlns="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" comparisonMethod="maven" xsi:schemaLocation="http://mojo.codehaus.org/versions-maven-plugin/rule/2.0.0 http://mojo.codehaus.org/versions-maven-plugin/xsd/rule-2.0.0.xsd">
<ignoreVersions>
<!-- Ignore Alpha's, Beta's, release candidates and milestones -->
<ignoreVersion type="regex">(?i).*Alpha(?:-?\d+)?</ignoreVersion>
<ignoreVersion type="regex">(?i).*Beta(?:-?\d+)?</ignoreVersion>
<ignoreVersion type="regex">(?i).*-B(?:-?\d+)?</ignoreVersion>
<ignoreVersion type="regex">(?i).*RC(?:-?\d+)?</ignoreVersion>
<ignoreVersion type="regex">(?i).*EA(?:-?\d+)?</ignoreVersion>
<ignoreVersion type="regex">(?i).*SNAPSHOT(?:-?\d+)?</ignoreVersion>
<!-- Sometimes Milestone releases are fair enough for testing libs like JUnit-->
<ignoreVersion type="regex">(?i).*M(?:-?\d+)?</ignoreVersion>
</ignoreVersions>

<rules>
<!-- One can add different rules in order to exclude specific version from automatic updates. -->
<!-- Testing... Update groupId, artifact id and appropriate version in order to exclude from versioning plugin
<rule groupId="com.microsoft.azure" artifactId="adal4j">
<ignoreVersions>
<ignoreVersion>1.3.0</ignoreVersion>
</ignoreVersions>
</rule>
-->
</rules>

</ruleset>
48 changes: 28 additions & 20 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId>
<version>6.3.5-SNAPSHOT.${jreVersion}-preview</version>

<version>6.5.0-SNAPSHOT.${jreVersion}-preview</version>
<packaging>jar</packaging>

<name>Microsoft JDBC Driver for SQL Server</name>
Expand Down Expand Up @@ -55,7 +55,7 @@
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>adal4j</artifactId>
<version>1.2.0</version>
<version>1.4.0</version>
<optional>true</optional>
</dependency>

Expand Down Expand Up @@ -118,7 +118,7 @@
<dependency>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP</artifactId>
<version>2.6.1</version>
<version>2.7.4</version>
<scope>test</scope>
</dependency>
<dependency>
Expand All @@ -139,10 +139,10 @@

<profiles>
<profile>
<id>build41</id>
<id>build42</id>

<properties>
<jreVersion>jre7</jreVersion>
<jreVersion>jre8</jreVersion>
</properties>

<build>
Expand All @@ -152,10 +152,10 @@
<version>3.6.0</version>
<configuration>
<excludes>
<exclude>**/com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java</exclude>
<exclude>**/com/microsoft/sqlserver/jdbc/SQLServerJdbc43.java</exclude>
</excludes>
<source>1.7</source>
<target>1.7</target>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
Expand All @@ -167,21 +167,19 @@
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>

</plugin>
</plugins>
</build>
</profile>

<profile>
<id>build42</id>

<id>build43</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>

<properties>
<jreVersion>jre8</jreVersion>
<jreVersion>jre9</jreVersion>
</properties>

<build>
Expand All @@ -191,10 +189,10 @@
<version>3.6.0</version>
<configuration>
<excludes>
<exclude>**/com/microsoft/sqlserver/jdbc/SQLServerJdbc41.java</exclude>
<exclude>**/com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java</exclude>
</excludes>
<source>1.8</source>
<target>1.8</target>
<source>9</source>
<target>9</target>
</configuration>
</plugin>
<plugin>
Expand Down Expand Up @@ -279,7 +277,7 @@
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.2.0</version>
<version>3.3.0</version>
<extensions>true</extensions>
<configuration>
<instructions>
Expand All @@ -301,7 +299,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.4</version>
<version>3.0.0-M1</version>

<configuration>
<failOnError>true</failOnError>
Expand Down Expand Up @@ -336,6 +334,16 @@
</dependency>
</dependencies>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<inherited>true</inherited>
<configuration>
<outputFile>outdated-dependencies.txt</outputFile>
<rulesUri>file:///${session.executionRootDirectory}/maven-version-rules.xml</rulesUri>
</configuration>
</plugin>

</plugins>
</build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ final class AuthenticationJNI extends SSPIAuthentication {
static int GetMaxSSPIBlobSize() {
return sspiBlobMaxlen;
}

static boolean isDllLoaded() {
return enabled;
}

static {
UnsatisfiedLinkError temp = null;
Expand Down
Loading