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

Updating connectionResiliency branch with the changes from dev branch #540

Merged
merged 853 commits into from
Nov 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
853 commits
Select commit Hold shift + click to select a range
1ce19e8
update readme to master
xiangyushawn Jul 28, 2017
0a6f9cf
Merge pull request #416 from peterbae/dev
xiangyushawn Jul 28, 2017
d702ce7
Merge pull request #417 from v-xiangs/xiangs-master
xiangyushawn Jul 28, 2017
4771dc2
updated changelog for dev
xiangyushawn Jul 28, 2017
686b27a
update changelog for master
xiangyushawn Jul 28, 2017
468053e
Merge pull request #419 from v-xiangs/master-update-changelog
xiangyushawn Jul 28, 2017
d6fdc02
Merge pull request #418 from v-xiangs/dev-update-changelog
xiangyushawn Jul 28, 2017
bea1327
Update CHANGELOG.md
xiangyushawn Jul 29, 2017
7741ee9
Update CHANGELOG.md
xiangyushawn Jul 29, 2017
7f5606c
Adding another value that will let the users specify default
ulvii Jul 29, 2017
1b0224c
Replace explicit types with <> (The diamond operator).
JamieMagee Jul 31, 2017
7b7275b
Replace for and while loops with foeach loops
JamieMagee Jul 31, 2017
9713fe2
make TLS keyword default
ulvii Jul 31, 2017
81b3f06
minor fixes
ulvii Jul 31, 2017
23383f2
fix issue when calling getString() on unique identifier parameter
xiangyushawn Jul 31, 2017
f88b361
Merge branch 'dev' into TLSVersionFix
ulvii Jul 31, 2017
dee4059
Update SQLServerResource.java
ulvii Jul 31, 2017
11cd000
Update SSLProtocolTest.java
ulvii Jul 31, 2017
6c7359f
add test
xiangyushawn Jul 31, 2017
133afdc
better fix
xiangyushawn Jul 31, 2017
91d17d1
fix an issue
xiangyushawn Jul 31, 2017
4912ac9
use properties to specify versions in pom file
xiangyushawn Aug 1, 2017
b351cc7
modify pom file to skip tests that are taged as slow
xiangyushawn Aug 1, 2017
6f57b27
use tag to skip certain tests, e.g. mvn clean install -Pbuild42 -Dski…
xiangyushawn Aug 1, 2017
a3b3bc8
Applying formatting
ulvii Aug 1, 2017
65de9a9
Applying formatting
ulvii Aug 1, 2017
558801c
Reverting back to tabs
ulvii Aug 1, 2017
5d46e6a
Minor fix
ulvii Aug 1, 2017
94cc5e2
Update SSLProtocolTest.java
ulvii Aug 2, 2017
c5f00c5
Junit changes - added CallableStatementTest and PrecisionScaleTest. R…
peterbae Aug 2, 2017
cf9ae2e
Fix timezone issues with testing
peterbae Aug 3, 2017
b0aa7fa
Fix more issues with timezone
peterbae Aug 3, 2017
768f2d3
update readme on master
xiangyushawn Aug 3, 2017
66f7135
update readme on master
xiangyushawn Aug 3, 2017
03e469c
update readme on dev
xiangyushawn Aug 3, 2017
2b48349
Update README.md
ajlam Aug 3, 2017
b0e27c4
Update README.md
ajlam Aug 3, 2017
5d3c176
Merge pull request #431 from v-xiangs/update-readme-dev
xiangyushawn Aug 3, 2017
f547dcf
Merge pull request #430 from v-xiangs/update-readme-master
xiangyushawn Aug 3, 2017
0361ee1
Add 6.2.1 to README
ajlam Aug 3, 2017
bfb19f3
Update README.md
ajlam Aug 3, 2017
76ce1d9
Update 6.2 download link
ajlam Aug 3, 2017
6c6174a
Update 6.2 download link
ajlam Aug 3, 2017
3d5097c
Update README.md
ajlam Aug 3, 2017
afa98f0
Merge branch 'JunitTesting' of https://github.com/peterbae/mssql-jdbc…
AfsanehR-zz Aug 4, 2017
d045d1a
Merge pull request #424 from v-xiangs/fix-a-SQL-Variant-mistake
xiangyushawn Aug 8, 2017
99b32f5
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into dev
AfsanehR-zz Aug 8, 2017
ddde692
Add javadoc/fix issues
peterbae Aug 8, 2017
3f0baf0
Got rid of all the underscores in method names
peterbae Aug 8, 2017
fcd913d
Merge pull request #432 from peterbae/JunitTesting
peterbae Aug 8, 2017
3ee92b7
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into dev
AfsanehR-zz Aug 8, 2017
812aecc
Add datetime/smalldatetime support for tvp
AfsanehR-zz Aug 8, 2017
d4cc533
Merge pull request #435 from v-afrafi/tvpSmallDateTimeDatetime2
AfsanehR-zz Aug 8, 2017
826e650
Merge branch 'getString-issue-for-uniqueidentifier' of https://github…
AfsanehR-zz Aug 10, 2017
dfbf439
Merge pull request #425 from v-xiangs/give-option-to-skip-long-runnin…
xiangyushawn Aug 10, 2017
ca55cc3
Merge pull request #423 from v-xiangs/getString-issue-for-uniqueident…
xiangyushawn Aug 10, 2017
97ab207
Merge pull request #409 from v-xiangs/volatile-fields-fix
xiangyushawn Aug 11, 2017
8a939e4
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into dev
AfsanehR-zz Aug 14, 2017
9d0486c
fixed issue with sql_variant
AfsanehR-zz Aug 14, 2017
b616fbf
Updated version to 6.3.1 and updated the changelog
AfsanehR-zz Aug 14, 2017
ac44f6e
setNull depends on sendStringParameterAsUnicode
xiangyushawn Aug 14, 2017
cce8eac
make sendStringParameterAsUnicode impact updateNull() as well
xiangyushawn Aug 14, 2017
62c5c6e
Merge pull request #444 from v-afrafi/dev
AfsanehR-zz Aug 15, 2017
dd74c9d
do not override the maxlength type in sql_variant when reading the va…
AfsanehR-zz Aug 15, 2017
cb088df
Merge pull request #446 from Microsoft/dev
AfsanehR-zz Aug 15, 2017
935b0db
add snapshot to pom file
AfsanehR-zz Aug 16, 2017
be29264
Fixed issue with throwing error message for unsupported datatype.
AfsanehR-zz Aug 16, 2017
35953e3
update version number
AfsanehR-zz Aug 16, 2017
0f5a5fb
Merge pull request #447 from v-afrafi/updateSnapshot
AfsanehR-zz Aug 16, 2017
00c2207
Merge pull request #451 from Microsoft/dev
AfsanehR-zz Aug 16, 2017
149e8d8
add test
xiangyushawn Aug 17, 2017
cc11277
rename a variable
xiangyushawn Aug 17, 2017
3a9d8da
update error messages for localization
xiangyushawn Aug 17, 2017
3bc6f34
fix misspelled words
xiangyushawn Aug 17, 2017
6790ecd
adding one error message back
xiangyushawn Aug 17, 2017
5bc2a9f
too bad.. I forgot to fix the misspelled word....
xiangyushawn Aug 17, 2017
117bd76
fix tests
xiangyushawn Aug 17, 2017
29d4e40
change cancellded to canceled
xiangyushawn Aug 17, 2017
e581dcf
Merge pull request #452 from v-xiangs/xiangs-dev
xiangyushawn Aug 18, 2017
b7777d9
Fix typo in Javadoc
mches Aug 18, 2017
8abe96c
Merge pull request #454 from mches/fix-javadoc-typo
xiangyushawn Aug 18, 2017
93e087c
Merge pull request #422 from ulvii/TLSVersionFix
ulvii Aug 18, 2017
35cfed9
Fixes all statement leaks in the driver.
peterbae Aug 18, 2017
d068bda
Fix issues with resultset getting closed before it's consumed / closi…
peterbae Aug 21, 2017
195719e
test
peterbae Aug 22, 2017
332a942
Removed logic for closing a statement that is still used somewhere, a…
peterbae Aug 22, 2017
9859067
remove unnecessary import
peterbae Aug 22, 2017
04f7b93
Throw the initial batch exception
AfsanehR-zz Aug 23, 2017
94f8829
Change formatting
peterbae Aug 23, 2017
e95082e
Merge branch 'statementLeak' of https://github.com/peterbae/mssql-jdb…
AfsanehR-zz Aug 23, 2017
396ea49
Merge branch 'dev' into sql_variant_temproal_fix
cheenamalhotra Aug 24, 2017
490c169
Merge pull request #455 from peterbae/statementLeak
peterbae Aug 28, 2017
1892ee1
updated test file
AfsanehR-zz Aug 28, 2017
5a55172
added test for the fix.
AfsanehR-zz Aug 28, 2017
a4bae33
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into sq…
AfsanehR-zz Aug 28, 2017
8c4f6f2
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into dev
AfsanehR-zz Aug 28, 2017
bad7829
Setting the loginTimout to default in case of a zero value (#456)
ulvii Aug 28, 2017
7cc14cc
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into sq…
AfsanehR-zz Aug 29, 2017
d9ffd9c
Resolving conflicts
AfsanehR-zz Aug 29, 2017
d1d2ccb
fix indentation of SQLServerResource.java
AfsanehR-zz Aug 29, 2017
e207571
added test
AfsanehR-zz Aug 29, 2017
80a4665
Merge pull request #442 from v-afrafi/sql_variant_fix
AfsanehR-zz Aug 29, 2017
5e6eb38
Merge pull request #450 from v-afrafi/sql_variant_temproal_fix
AfsanehR-zz Aug 29, 2017
b756dd6
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into dev
AfsanehR-zz Aug 29, 2017
8ce3b2a
Fix classloader leak issue
peterbae Aug 29, 2017
3a1bd51
comment change
peterbae Aug 30, 2017
ff085a5
add slow tag to tests
AfsanehR-zz Aug 30, 2017
3c9f635
Merge pull request #445 from v-xiangs/make-sendStringParameterAsUnico…
AfsanehR-zz Aug 31, 2017
7e7ada5
Fixing a few mistakes in SQLServerResource (#459)
ulvii Aug 31, 2017
5597d4d
Merge pull request #461 from v-afrafi/skipLongRunningTests
AfsanehR-zz Aug 31, 2017
ef28f62
Removing connection property - fipsProvider (#460)
ulvii Aug 31, 2017
b8bb750
Add a way to remove the entries in the map after they're finished bei…
peterbae Aug 31, 2017
2e87201
Merge pull request #421 from JamieMagee/foreach
peterbae Aug 31, 2017
e277087
Replace explicit types with <>
peterbae Aug 31, 2017
b31ec7c
Revert "Replace explicit types with <>"
peterbae Aug 31, 2017
a9fa2c2
Merge branch 'explicit-type-diamond' of https://github.com/JamieMagee…
peterbae Aug 31, 2017
4e66654
Merge branch 'JamieMagee-explicit-type-diamond' into dev
peterbae Aug 31, 2017
5a13577
Merge pull request #468 from peterbae/dev
peterbae Aug 31, 2017
180dff0
Remove explicit extends object
JamieMagee Sep 1, 2017
6291ec0
Removes redundant if/else statements. For example:
JamieMagee Sep 1, 2017
4badd3c
Remove unnecessary return statements
JamieMagee Sep 1, 2017
0deeff6
Simplify overly complex boolean expressions
JamieMagee Sep 1, 2017
70197f2
Add missing newlines to appveyor.yml
sehrope Sep 1, 2017
8ed22c6
Add missing newline to .travis.yml
sehrope Sep 1, 2017
6f0bc72
Remove comment from .travis.yml
sehrope Sep 1, 2017
b7fee51
Merge pull request #458 from v-afrafi/batchUpdateException
AfsanehR-zz Sep 1, 2017
4213afc
TimeoutTimer: Check for destroyed TheadGroup
mnhubspot Sep 1, 2017
9da95c5
TimeoutTimer: Forgot reference
mnhubspot Sep 1, 2017
5ed8903
Use ConcurrentHashMap instead
peterbae Sep 5, 2017
460e3a3
update 6.3.1 to 6.3.2
xiangyushawn Sep 6, 2017
3e3a34e
update changelog
xiangyushawn Sep 6, 2017
3923086
update changelog format
xiangyushawn Sep 6, 2017
756bbb5
Merge pull request #478 from v-xiangs/xiangs-dev
xiangyushawn Sep 6, 2017
7b4d041
increase version with SNAPSHOT after release
xiangyushawn Sep 6, 2017
8960b85
Merge pull request #480 from v-xiangs/xiangs-dev
xiangyushawn Sep 7, 2017
4acd905
refactor checkAndInitActivityId
peterbae Sep 7, 2017
a86ada9
removing java.xml.bind.DatatypeConverter packages
AfsanehR-zz Sep 8, 2017
d4ab319
modified open source tests to run with java 9
AfsanehR-zz Sep 8, 2017
c524439
removed redundant methods
AfsanehR-zz Sep 8, 2017
347e852
remove extra line
AfsanehR-zz Sep 8, 2017
84594c0
indentation
AfsanehR-zz Sep 8, 2017
4858435
works now, need comments and clean
xiangyushawn Sep 9, 2017
71ff104
added comments
xiangyushawn Sep 9, 2017
ebb352e
add support for ""
xiangyushawn Sep 9, 2017
bccfd18
removing unused import
AfsanehR-zz Sep 10, 2017
76eec30
removing deprecated APIs in java 9
AfsanehR-zz Sep 11, 2017
25408d7
fix getExportedKeys()
xiangyushawn Sep 11, 2017
3b8955f
add switchCatalogs() from the current implementation
xiangyushawn Sep 11, 2017
bf24e10
fix getCrossReference()
xiangyushawn Sep 11, 2017
c35365a
adding tests
xiangyushawn Sep 11, 2017
5dbb223
fix scenario when catalog is "" and add some tests for it
xiangyushawn Sep 11, 2017
e7182ed
add tests for getCrossReference()
xiangyushawn Sep 11, 2017
d6668e0
use batch instead of each statement.execute to reduce performance impact
xiangyushawn Sep 11, 2017
1d800f9
change column names as JDBC required
xiangyushawn Sep 11, 2017
2c70aea
fixed the exception thrown by getters on null
AfsanehR-zz Sep 12, 2017
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
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
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
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
3ac6077
update changelog and readme for dev branch
xiangyushawn Sep 29, 2017
88b5e43
Resolved conflicts in connresTest - fixing build issues
cheenamalhotra Sep 29, 2017
d381e9e
Committing fixes for Junit Tests
cheenamalhotra Sep 30, 2017
3b71c46
Merge branch 'connresTest' into connectionResiliency
cheenamalhotra Sep 30, 2017
1f63f84
Failing tests disabled temporarily
cheenamalhotra Sep 30, 2017
afac994
Faoling tests disabled temporarily
cheenamalhotra Sep 30, 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
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
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
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
fc22681
update
ulvii Oct 18, 2017
df0bbd3
Merge remote-tracking branch 'upstream/dev' into dev
ulvii Oct 18, 2017
90a70a6
newline
ulvii Oct 18, 2017
94ae4bf
6.3.4 release (#528)
ulvii Oct 18, 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
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
9b765d8
Merge pull request #1 from cheenamalhotra/connectionResiliency
ulvii Nov 3, 2017
e9dbd20
Merge remote-tracking branch 'upstream/dev' into dev
ulvii Nov 3, 2017
5dc40d7
Merge branch 'connectionResiliency' into dev
ulvii Nov 3, 2017
2a86b4b
Merge pull request #2 from ulvii/dev
ulvii Nov 3, 2017
a93b582
temporarily skipping amedParamMultiPartTest.update5 and amedParamMult…
ulvii Nov 6, 2017
753ba03
Merge branch 'connectionResiliency' of https://github.com/ulvii/mssql…
ulvii Nov 6, 2017
d03780c
Adding @Disabled tag for failing tests
ulvii Nov 7, 2017
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 @@ -14,7 +14,9 @@ build/
*~.nib
local.properties
.classpath
.vscode/
.settings/
.gradle/
.loadpath

# External tool builders
Expand Down
30 changes: 22 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
sudo: required
sudo: required

language: java
jdk:
Expand All @@ -8,23 +8,37 @@ services:
- docker

env:
global:
- mssql_jdbc_test_connection_properties='jdbc:sqlserver://localhost:1433;databaseName=master;username=sa;password=<YourStrong!Passw0rd>;'

- mssql_jdbc_logging='true'
# Enabling logging with console / file handler for JUnit Test Framework.
#- mssql_jdbc_logging_handler='console'|'file'

#Cache the .m2 folder
cache:
directories:
- $HOME/.m2

before_install:
- mkdir AE_Certificates

install:
- cd AE_Certificates
- openssl req -newkey rsa:2048 -x509 -keyout cakey.pem -out cacert.pem -days 3650 -subj "/C=US/ST=WA/L=Redmond/O=Microsoft Corporation/OU=SQL Server/CN=JDBC Driver" -nodes
- openssl pkcs12 -export -in cacert.pem -inkey cakey.pem -out identity.p12 -password pass:password
- 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 -Pbuild42

before_script:
- docker pull microsoft/mssql-server-linux
- docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<YourStrong!Passw0rd>' -p 1433:1433 -d microsoft/mssql-server-linux
- docker pull microsoft/mssql-server-linux:2017-latest
- docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=<YourStrong!Passw0rd>' -p 1433:1433 -d microsoft/mssql-server-linux:2017-latest

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
- mvn test -B -Pbuild42 jacoco:report && bash <(curl -s https://codecov.io/bash) -cF JDBC42

#after_success:
# instead of after success we are using && operator for conditional submitting coverage report.
# - bash <(curl -s https://codecov.io/bash)
674 changes: 674 additions & 0 deletions AppVeyorJCE/LICENSE

Large diffs are not rendered by default.

31 changes: 31 additions & 0 deletions AppVeyorJCE/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# JCE chocolatey package

### Disclaimers:
1. All contents within this directory originate from [this GitHub project](https://github.com/TobseF/jce-chocolatey-package). This project was added to allow us to test the Always Encrypted feature on AppVeyor builds.

2. This is not an official project of Oracle. It\`s only easy of the manual installation: It downloads the JCE from oracle.com and unpacks it to the installed JDK.


[Chocolatey](https://chocolatey.org/) package for the [JCE (Unlimited Strength Java Cryptography Extension Policy Files)](http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html)

This chocolatey package adds the JCE to latest installed Java SDK. The The `JAVA_HOME` environment variable has to point to the JDK. If `JAVA_HOME` is not set, nothing will be changed. The original files are backuped (renamed to `*_old`) and can be reverted at any time. This package is a perfect addion to the [JDK8 package](https://chocolatey.org/packages/jdk8).

#### Install with [Chocolatey](https://chocolatey.org/)
```PowerShell
choco install jce -y
```

#### Build from source:
1. Install [Chocolatey](https://chocolatey.org/).
2. Open cmd with admin rights in jce package directory.
3. Pack NuGet Package (.nupkg).
```PowerShell
cpack
```
4. Install JCE NuGet Package.
```PowerShell
choco install jce -fdv -s . -y
```



28 changes: 28 additions & 0 deletions AppVeyorJCE/jce.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<!-- Read this before publishing packages to chocolatey.org: https://github.com/chocolatey/chocolatey/wiki/CreatePackages -->
<id>jce</id>
<title>JCE (Java Cryptography Extension)</title>
<version>7.0.0</version>
<authors>Sun Microsystems/Oracle Corporation</authors>
<owners>Tobse Fritz</owners>
<summary>Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 7</summary>
<description>Downloads and installs the Java Cryptography Extension (JCE) to the lastest JDK. The The JAVA_HOME environment variable has to point to the JDK. If JAVA_HOME is not set, nothing will be changed. The original files are backuped (renamed to *_old) and can be reverted at any time.</description>
<projectUrl>https://github.com/TobseF/jce-chocolatey-package</projectUrl>
<tags>java jce admin</tags>
<copyright></copyright>
<licenseUrl>http://www.oracle.com/technetwork/java/javase/downloads/jce-7-download-432124.html</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>http://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/50fd97744110dcbce1acde889c0870599c9d5584/icons/java.svg</iconUrl>
<!--<dependencies>
<dependency id="" version="__VERSION__" />
<dependency id="" />
</dependencies>-->
<releaseNotes></releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
15 changes: 15 additions & 0 deletions AppVeyorJCE/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$script_path = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$common = $(Join-Path $script_path "common.ps1")
. $common

#installs JCE
try {
chocolatey-install
} catch {
if ($_.Exception.InnerException) {
$msg = $_.Exception.InnerException.Message
} else {
$msg = $_.Exception.Message
}
throw
}
14 changes: 14 additions & 0 deletions AppVeyorJCE/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
$script_path = $(Split-Path -parent $MyInvocation.MyCommand.Definition)
$common = $(Join-Path $script_path "common.ps1")
. $common

function Uninstall-ChocolateyPath {
param(
[string] $pathToUninstall,
[System.EnvironmentVariableTarget] $pathType = [System.EnvironmentVariableTarget]::User
)
Write-Debug "Running 'Uninstall-ChocolateyPath' with pathToUninstall:`'$pathToUninstall`'";

#get the PATH variable
$envPath = $env:PATH
}
85 changes: 85 additions & 0 deletions AppVeyorJCE/tools/common.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
$jce_version = '7'
$zipFolder = 'UnlimitedJCEPolicy'
$script_path = $(Split-Path -parent $MyInvocation.MyCommand.Definition)

function has_file($filename) {
return Test-Path $filename
}

function download-from-oracle($url, $output_filename) {
if (!(has_file($output_fileName))) {
Write-Host "Downloading JCE from $url"

try {
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = { $true }
$client = New-Object Net.WebClient
$dummy = $client.Headers.Add('Cookie', 'gpw_e24=http://www.oracle.com; oraclelicense=accept-securebackup-cookie')
$dummy = $client.DownloadFile($url, $output_filename)
} finally {
[System.Net.ServicePointManager]::ServerCertificateValidationCallback = $null
}
}
}

function download-jce-file($url, $output_filename) {
$dummy = download-from-oracle $url $output_filename
}

function download-jce() {
$filename = "UnlimitedJCEPolicyJDK$jce_version.zip"
$url = "http://download.oracle.com/otn-pub/java/jce/$jce_version/$filename"
$output_filename = Join-Path $script_path $filename
If(!(Test-Path $output_filename)){
$dummy = download-jce-file $url $output_filename
}
return $output_filename
}

function get-java-home(){
return Get-EnvironmentVariable 'JAVA_HOME' -Scope 'Machine' -PreserveVariables
}

function get-jce-dir($java_home) {
return Join-Path $java_home 'jre\lib\security'
}

function chocolatey-install() {
$java_home = get-java-home
if (!$java_home) {
Write-Host "Couldnt find JAVA_HOME environment variable"
Write-Host "Skipping installation"
}else{
$jce_dir = get-jce-dir $java_home
$already_patched_file = Join-Path $jce_dir 'local_policy_old.jar'

If(Test-Path $already_patched_file){
Write-Host "JCE already installed: $jce_dir"
Write-Host "Skipping installation"
}else{
Write-Host "JCE is not installed ($already_patched_file) is not present"
Write-Host "Starting installation"
install-jce $jce_dir
}
}
}

function install-jce($jce_dir) {
$jce_zip_file = download-jce
$temp_dir = Get-EnvironmentVariable 'TEMP' -Scope User -PreserveVariables
$local_policy = Join-Path $jce_dir 'local_policy.jar'
$export_policy = Join-Path $jce_dir 'US_export_policy.jar'

Write-Host "Downloading JCE ($jce_zip_file)"
Install-ChocolateyZipPackage -PackageName 'jce7' -Url $jce_zip_file -UnzipLocation $temp_dir

If(Test-Path $local_policy){
Rename-Item -Path $local_policy -NewName 'local_policy_old.jar' -Force
}

If(Test-Path $export_policy){
Rename-Item -Path $export_policy -NewName 'US_export_policy_old.jar' -Force
}

$unzippedFolder = Join-Path $temp_dir $zipFolder
Copy-Item $unzippedFolder\*.jar $jce_dir -force
}
Loading