Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
791 commits
Select commit Hold shift + click to select a range
5de4296
Made Util a public class to check for jdbc 4.2 compliance
peterbae Jul 20, 2017
f46f622
Merge pull request #402 from v-xiangs/dev-update-readme
xiangyushawn Jul 20, 2017
092d584
Merge pull request #403 from v-xiangs/master-update-readme
xiangyushawn Jul 20, 2017
041e07a
part of fixes per code review comments
AfsanehR-zz Jul 21, 2017
0d7d78b
Merge pull request #397 from v-xiangs/update-code-to-compile-with-AKV-v1
xiangyushawn Jul 21, 2017
b8e23c9
wrap null pointer exception to sql server exception
xiangyushawn Jul 21, 2017
999cd00
Merge pull request #373 from v-xiangs/newdev-SET-FMTONLY-ON-to-suppor…
xiangyushawn Jul 21, 2017
562c390
remove variable nameFragment
xiangyushawn Jul 21, 2017
1d974f0
last part of code review changes
AfsanehR-zz Jul 21, 2017
ff5d42a
Merge pull request #371 from v-xiangs/newdev-fix-ParameterMetaData-wi…
xiangyushawn Jul 21, 2017
f31f04d
updated test files to remove unused variables and added javadocs
AfsanehR-zz Jul 24, 2017
6fb0ecb
resolve the conflict with SQLServerResource
AfsanehR-zz Jul 24, 2017
a6630b2
resolve conflicts with dev branch
AfsanehR-zz Jul 24, 2017
32c9bca
naming convention fix
AfsanehR-zz Jul 24, 2017
6c2836f
Merge branch 'JunitTesting' of https://github.com/peterbae/mssql-jdbc…
AfsanehR-zz Jul 24, 2017
95a684f
removed unused method
AfsanehR-zz Jul 24, 2017
7ae1de2
added more tests to callableStatement
AfsanehR-zz Jul 24, 2017
d150cc0
Add javadocs reference to documentation
ajlam Jul 24, 2017
7bfc491
update setter and getterConversions for sql_variant
AfsanehR-zz Jul 24, 2017
3939912
more formatting fixes
AfsanehR-zz Jul 24, 2017
9172170
Merge pull request #304 from marschall/getObject-class
xiangyushawn Jul 24, 2017
188d4d8
Employed Afsaneh's suggestions - did javadoc addition, did format che…
peterbae Jul 24, 2017
df11dfa
Update SqlTypeValue.java
peterbae Jul 24, 2017
6b905af
Revert Util to be package private and add the jdbc 4.2 check function…
peterbae Jul 24, 2017
d09ab27
Update SqlTypeValue.java
peterbae Jul 25, 2017
6ad6aad
adding an exception message in case of inserting null value with TVP
AfsanehR-zz Jul 25, 2017
cb696aa
remove volatile keyword
xiangyushawn Jul 25, 2017
135985b
added missing dots in error messages
AfsanehR-zz Jul 25, 2017
c28b271
Merge pull request #404 from peterbae/JunitTesting
peterbae Jul 25, 2017
20abd37
Update survey link
ajlam Jul 25, 2017
9f9e78e
Update survey link
ajlam Jul 25, 2017
4918d1a
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into dev
AfsanehR-zz Jul 25, 2017
25c5e59
create template for new issues
xiangyushawn Jul 25, 2017
55e20ed
Merge pull request #84 from JamieMagee/explicit_boxing_unboxing
peterbae Jul 26, 2017
fa1f3fb
fix the hanging loop with retry logic of cannot find prepared stateme…
AfsanehR-zz Jul 26, 2017
9ea5684
fix issue on parameter metadata with SQL Server 2008 when parameter n…
xiangyushawn Jul 26, 2017
a07b9b8
added test for parameter with braces
xiangyushawn Jul 26, 2017
78d40e0
delete extra lines
xiangyushawn Jul 26, 2017
a8ef027
Merge pull request #410 from v-xiangs/fix-parameter-metadata
xiangyushawn Jul 26, 2017
e3b9415
make sure the cached handle does not get re-used in case of new type…
AfsanehR-zz Jul 26, 2017
48ebac1
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into Sq…
AfsanehR-zz Jul 26, 2017
39617d9
Merge pull request #387 from v-afrafi/SqlVariant
AfsanehR-zz Jul 27, 2017
c2e50a5
Merge pull request #393 from v-afrafi/metaDataCachingBatchQuery
AfsanehR-zz Jul 27, 2017
d12ffad
Merge branch 'dev' of https://github.com/Microsoft/mssql-jdbc into dev
AfsanehR-zz Jul 27, 2017
c231379
fix sending null to TVP
AfsanehR-zz Jul 27, 2017
d428412
added { to follow coding convetion
AfsanehR-zz Jul 27, 2017
cb16472
Merge pull request #412 from v-afrafi/fix_TVP_issue_with_null_value
AfsanehR-zz Jul 27, 2017
d12a40b
6.3.0 release doccumentation changes
peterbae Jul 27, 2017
d977ca5
small change
peterbae Jul 27, 2017
f6af669
Remove "Stable Release" for 6.3.0
peterbae Jul 27, 2017
b0852b9
Move the position of -preview to the end of the jar name
peterbae Jul 27, 2017
7a463e2
Add preview release to 6.3.0
ajlam Jul 27, 2017
b4989ed
Merge pull request #413 from peterbae/6.3.0-Release
peterbae Jul 28, 2017
2c6b705
Merge branch 'master' into dev
peterbae Jul 28, 2017
0e6f120
Initial commit for the new connection property - sslprotocol
ulvii Jul 28, 2017
029c478
Merge pull request #415 from Microsoft/dev
peterbae Jul 28, 2017
ec7ee0e
add SNAPSHOT to pom file
peterbae Jul 28, 2017
e2d28cb
Update build version on readme file
peterbae Jul 28, 2017
f0fd46d
Making versioning changes
peterbae Jul 28, 2017
6ce97b6
Versioning change to add preview
peterbae Jul 28, 2017
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
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
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
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
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
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
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
26 changes: 20 additions & 6 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,9 +8,27 @@ 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

Expand All @@ -24,7 +42,3 @@ script:
##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