Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mysql/mysql-connector-j
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5.1.37
Choose a base ref
...
head repository: mysql/mysql-connector-j
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5.1.38
Choose a head ref

Commits on Oct 1, 2015

  1. Post-release changes.

    fjssilva committed Oct 1, 2015
    Copy the full SHA
    3456ea0 View commit details

Commits on Oct 15, 2015

  1. Fix in CHANGES file.

    fjssilva committed Oct 15, 2015
    Copy the full SHA
    b0f1ecd View commit details
  2. Fix for Bug#21934573, FABRIC CODE INVOLVED IN THREAD DEADLOCK.

    Duplicate: Bug#78710 (21966391), Deadlock on ReplicationConnection and ReplicationConnectionGroup when failover.
    fjssilva committed Oct 15, 2015
    Copy the full SHA
    baf2c17 View commit details

Commits on Oct 23, 2015

  1. Copy the full SHA
    be29f3d View commit details
  2. Copy the full SHA
    685c871 View commit details

Commits on Oct 27, 2015

  1. Copy the full SHA
    f3fa6cc View commit details
  2. Copy the full SHA
    a38afc0 View commit details

Commits on Oct 29, 2015

  1. Add DataSource version of employees Fabric demo code

    Jess Balint committed Oct 29, 2015
    Copy the full SHA
    b82eed2 View commit details

Commits on Oct 30, 2015

  1. Copy the full SHA
    808463b View commit details

Commits on Nov 3, 2015

  1. Copy the full SHA
    835e751 View commit details

Commits on Nov 6, 2015

  1. Copy the full SHA
    5d0d160 View commit details
  2. Copy the full SHA
    461f47e View commit details

Commits on Nov 12, 2015

  1. Fix for Bug#56100 (11763401), Replication driver routes DML statement…

    …s to read-only slaves.
    fjssilva committed Nov 12, 2015
    Copy the full SHA
    16c1e79 View commit details

Commits on Nov 13, 2015

  1. Removed unnecessary duplicate test 'testBug21876798()' from 'testsuit…

    …e.regression.jdbc4.StatementRegressionTest'.
    fjssilva committed Nov 13, 2015
    Copy the full SHA
    d671733 View commit details
  2. Fix for Bug#78961 (22096981), Can't call MySQL procedure with InOut p…

    …arameters in Fabric environment.
    fjssilva committed Nov 13, 2015
    Copy the full SHA
    13c5af1 View commit details

Commits on Nov 18, 2015

  1. Copy the full SHA
    13e0402 View commit details
  2. Minor fix in CHANGES.

    fjssilva committed Nov 18, 2015
    Copy the full SHA
    9fdab7b View commit details
  3. Fix for Bug#56122 (11763419), JDBC4 functionality failure when using …

    …replication connections.
    fjssilva committed Nov 18, 2015
    Copy the full SHA
    ae7d009 View commit details

Commits on Nov 19, 2015

  1. Fix for Bug#21296840 & Bug#17910835, Server information in a group from

    Fabric is not refreshed after expired TTL
    Jess Balint committed Nov 19, 2015
    Copy the full SHA
    387dad9 View commit details
  2. Copy the full SHA
    8af911d View commit details
  3. New version, 5.1.38

    fjssilva committed Nov 19, 2015
    Copy the full SHA
    f2bc1a8 View commit details

Commits on Nov 23, 2015

  1. Copy the full SHA
    e4a0522 View commit details

Commits on Nov 24, 2015

  1. Copy the full SHA
    bee0f06 View commit details

Commits on Nov 27, 2015

  1. Copy the full SHA
    760c008 View commit details

Commits on Dec 2, 2015

  1. Copy the full SHA
    fe541c1 View commit details
Showing with 3,313 additions and 4,061 deletions.
  1. +2 −1 .settings/org.eclipse.jdt.core.prefs
  2. +1 −1 .settings/org.eclipse.jdt.ui.prefs
  3. +25 −1 CHANGES
  4. +2 −0 README.md
  5. +5 −2 build.xml
  6. +1 −2 src/com/mysql/fabric/jdbc/ErrorReportingExceptionInterceptor.java
  7. +130 −72 src/com/mysql/fabric/jdbc/FabricMySQLConnectionProxy.java
  8. +4 −0 src/com/mysql/fabric/jdbc/JDBC4FabricMySQLConnectionProxy.java
  9. +4 −4 src/com/mysql/jdbc/BalanceStrategy.java
  10. +3 −6 src/com/mysql/jdbc/BestResponseTimeBalanceStrategy.java
  11. +14 −14 src/com/mysql/jdbc/CallableStatement.java
  12. +19 −19 src/com/mysql/jdbc/ConnectionGroup.java
  13. +52 −51 src/com/mysql/jdbc/ConnectionImpl.java
  14. +10 −0 src/com/mysql/jdbc/ConnectionProperties.java
  15. +43 −0 src/com/mysql/jdbc/ConnectionPropertiesImpl.java
  16. +1 −1 src/com/mysql/jdbc/DatabaseMetaData.java
  17. +64 −6 src/com/mysql/jdbc/ExportControlled.java
  18. +31 −3 src/com/mysql/jdbc/FailoverConnectionProxy.java
  19. +2 −2 src/com/mysql/jdbc/JDBC4Connection.java
  20. +8 −8 src/com/mysql/jdbc/JDBC4LoadBalancedMySQLConnection.java
  21. +4 −4 src/com/mysql/jdbc/JDBC4MultiHostMySQLConnection.java
  22. +5 −1 src/com/mysql/jdbc/JDBC4MySQLConnection.java
  23. +126 −0 src/com/mysql/jdbc/JDBC4ReplicationMySQLConnection.java
  24. +3 −3 src/com/mysql/jdbc/LoadBalancedAutoCommitInterceptor.java
  25. +2 −2 src/com/mysql/jdbc/LoadBalancedConnection.java
  26. +85 −63 src/com/mysql/jdbc/{LoadBalancingConnectionProxy.java → LoadBalancedConnectionProxy.java}
  27. +12 −7 src/com/mysql/jdbc/LoadBalancedMySQLConnection.java
  28. +16 −14 src/com/mysql/jdbc/LocalizedErrorMessages.properties
  29. +89 −20 src/com/mysql/jdbc/MultiHostConnectionProxy.java
  30. +60 −20 src/com/mysql/jdbc/MultiHostMySQLConnection.java
  31. +3 −0 src/com/mysql/jdbc/MySQLConnection.java
  32. +8 −0 src/com/mysql/jdbc/MysqlIO.java
  33. +3 −9 src/com/mysql/jdbc/NonRegisteringDriver.java
  34. +3 −3 src/com/mysql/jdbc/RandomBalanceStrategy.java
  35. +13 −2,994 src/com/mysql/jdbc/ReplicationConnection.java
  36. +84 −21 src/com/mysql/jdbc/ReplicationConnectionGroup.java
  37. +610 −0 src/com/mysql/jdbc/ReplicationConnectionProxy.java
  38. +176 −0 src/com/mysql/jdbc/ReplicationMySQLConnection.java
  39. +0 −6 src/com/mysql/jdbc/SQLError.java
  40. +2 −2 src/com/mysql/jdbc/SequentialBalanceStrategy.java
  41. +123 −1 src/com/mysql/jdbc/SocketMetadata.java
  42. +2 −62 src/com/mysql/jdbc/StandardSocketFactory.java
  43. +22 −2 src/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java
  44. +139 −0 src/demo/fabric/EmployeesDataSource.java
  45. +77 −100 src/testsuite/BaseTestCase.java
  46. +26 −34 src/testsuite/UnreliableSocketFactory.java
  47. +47 −1 src/testsuite/fabric/jdbc/TestBasicConnection.java
  48. +851 −146 src/testsuite/regression/ConnectionRegressionTest.java
  49. +75 −70 src/testsuite/regression/MetaDataRegressionTest.java
  50. +1 −1 src/testsuite/regression/ResultSetRegressionTest.java
  51. +77 −48 src/testsuite/regression/StatementRegressionTest.java
  52. +1 −0 src/testsuite/regression/StringRegressionTest.java
  53. +74 −69 src/testsuite/regression/SyntaxRegressionTest.java
  54. +33 −23 src/testsuite/regression/jdbc4/ConnectionRegressionTest.java
  55. +1 −66 src/testsuite/regression/jdbc4/StatementRegressionTest.java
  56. +20 −16 src/testsuite/simple/ConnectionTest.java
  57. +16 −57 src/testsuite/simple/MultiHostConnectionTest.java
  58. +3 −3 src/testsuite/simple/ReadOnlyCallableStatementTest.java
3 changes: 2 additions & 1 deletion .settings/org.eclipse.jdt.core.prefs
Original file line number Diff line number Diff line change
@@ -132,7 +132,7 @@ org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_e
org.eclipse.jdt.core.formatter.alignment_for_assignment=0
org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=16
org.eclipse.jdt.core.formatter.alignment_for_enum_constants=16
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
org.eclipse.jdt.core.formatter.alignment_for_method_declaration=0
@@ -408,3 +408,4 @@ org.eclipse.jdt.core.formatter.wrap_before_or_operator_multicatch=true
org.eclipse.jdt.core.formatter.wrap_outer_expressions_when_nested=true
org.eclipse.jdt.core.incompatibleJDKLevel=ignore
org.eclipse.jdt.core.incompleteClasspath=error
org.eclipse.jdt.core.javaFormatter=org.eclipse.jdt.core.defaultJavaFormatter
2 changes: 1 addition & 1 deletion .settings/org.eclipse.jdt.ui.prefs
Original file line number Diff line number Diff line change
@@ -63,7 +63,7 @@ formatter_profile=_ConnectorJ Team
formatter_settings_version=12
internal.default.compliance=default
org.eclipse.jdt.ui.ignorelowercasenames=true
org.eclipse.jdt.ui.importorder=java;javax;org;com;
org.eclipse.jdt.ui.importorder=java;javax;org;com;testsuite;
org.eclipse.jdt.ui.ondemandthreshold=99
org.eclipse.jdt.ui.staticondemandthreshold=99
sp_cleanup.add_default_serial_version_id=true
26 changes: 25 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
@@ -1,5 +1,28 @@
# Changelog
# $Id$
11-30-15 - Version 5.1.38

- Fix for Bug#21286268, CONNECTOR/J REPLICATION USE MASTER IF SLAVE IS UNAVAILABLE.

- Fix for Bug#21296840 & Bug#17910835, Server information in a group from Fabric is not refreshed after expired TTL.

- Fix for Bug#56122 (11763419), JDBC4 functionality failure when using replication connections.

- Added support for TLSv1.1 and TLSv1.2

- Fix for Bug#78961 (22096981), Can't call MySQL procedure with InOut parameters in Fabric environment.

- Fix for Bug#56100 (11763401), Replication driver routes DML statements to read-only slaves.

- StandardSSLSocketFactory implements SocketMetadata.

- Fix for Bug#21978216, GETTYPEINFO REPORT MAXIMUM PRECISION OF 255 FOR VARBINARY.

- Fix for Bug#78706 (21947042), Prefer TLS where supported by MySQL Server.

- Fix for Bug#21934573, FABRIC CODE INVOLVED IN THREAD DEADLOCK.
Duplicate: Bug#78710 (21966391), Deadlock on ReplicationConnection and ReplicationConnectionGroup when failover.

10-15-15 - Version 5.1.37

- Fix for Bug#21876798, CONNECTOR/J WITH MYSQL FABRIC AND SPRING PRODUCES PROXY ERROR.
@@ -13,10 +36,11 @@

- Added tests for Optimizer hints syntax introduced in MySQL 5.7.7.

- Fix for Bug#Bug #21860833, JSON DATA TYPE DOESN'T WORK WITH SSPS.
- Fix for Bug#21860833, JSON DATA TYPE DOESN'T WORK WITH SSPS.
Added support for JSON data type.

- Added support for JDBC 4.2 new features.
New property 'enableEscapeProcessing' sets the default escape processing behavior for Statement objects.

- Fix for Bug#16634180, LOCK WAIT TIMEOUT EXCEEDED CAUSES SQLEXCEPTION, SHOULD CAUSE SQLTRANSIENTEXCEPTION

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -14,6 +14,8 @@ Please refer to files README and COPYING, available in this repository, and [Leg

MySQL Connector/J can be installed from pre-compiled packages that can be downloaded from the [MySQL downloads page](http://dev.mysql.com/downloads/connector/j/). Installing Connector/J only requires extracting the corresponding Jar file from the downloaded bundle and place it somewhere in the application's CLASSPATH.

Alternatively you can setup [Maven's dependency management](http://search.maven.org/#search|ga|1|g%3A%22mysql%22%20AND%20a%3A%22mysql-connector-java%22) directly in your project and let it download it for you.

### Building from sources

This driver can also be complied and installed from the sources available in this repository. Please refer to the documentation for [detailed instructions](http://dev.mysql.com/doc/connector-j/en/connector-j-installing-source.html) on how to do it.
7 changes: 5 additions & 2 deletions build.xml
Original file line number Diff line number Diff line change
@@ -137,7 +137,7 @@ com.mysql.jdbc.noCleanBetweenCompiles=yes

<property name="major_version" value="5" />
<property name="minor_version" value="1" />
<property name="subminor_version" value="37" />
<property name="subminor_version" value="38" />
<property name="version_status" value="" />

<property name="version" value="${major_version}.${minor_version}.${subminor_version}${version_status}" />
@@ -146,7 +146,8 @@ com.mysql.jdbc.noCleanBetweenCompiles=yes
<property name="snapshot.version" value="-SNAPSHOT" />
<property name="extra.version" value="" />
<property name="full.version" value="${version}${extra.version}${snapshot.version}" />
<property name="fullProdName" value="${prodName}-${full.version}" />
<property name="extra.product.name" value="" />
<property name="fullProdName" value="${prodName}${extra.product.name}-${full.version}" />
<property name="sourceDir" value="./src" />
<property name="buildDir" value="./build" />
<property name="distDir" value="./dist" />
@@ -678,6 +679,8 @@ Java 8 (for JDBC 4+ implementation) is also required. Set the full path to this
<mkdir dir="${toPackage}" />
<mkdir dir="${packageDest}" />

<delete dir="${toPackage}" />

<patternset id="non.test.sources">
<exclude name="**/*.nb*" />
<exclude name="**/*.bak" />
Original file line number Diff line number Diff line change
@@ -55,8 +55,7 @@ public SQLException interceptException(SQLException sqlEx, Connection conn) {
try {
return fabricProxy.interceptException(sqlEx, conn, this.fabricHaGroup, this.hostname, this.port);
} catch (FabricCommunicationException ex) {
return SQLError.createSQLException("Failed to report error to Fabric.", SQLError.SQL_STATE_COMMUNICATION_LINK_FAILURE, ex,
conn.getExceptionInterceptor(), conn);
return SQLError.createSQLException("Failed to report error to Fabric.", SQLError.SQL_STATE_COMMUNICATION_LINK_FAILURE, ex, null);
}
}

Loading