Commit 35883b3d authored by doc@bgerp.org's avatar doc@bgerp.org

p12137 MySQL JDBC driver update.

parent 4e8b4719
......@@ -109,7 +109,7 @@ dependencies {
bgerp group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.4.1.3' // 2.9.8
bgerp group: 'net.sf.jasperreports', name: 'jasperreports', version: '6.7.0'
bgerp group: 'org.jsoup', name: 'jsoup', version: '1.11.3'
bgerp group: 'mysql', name: 'mysql-connector-java', version: '5.1.8' // 8.0.14
bgerp group: 'mysql', name: 'mysql-connector-java', version: '8.0.19'
bgerp group: 'org.apache.poi', name: 'poi', version: '4.0.1'
bgerp group: 'org.apache.commons', name: 'commons-collections4', version: '4.3' // required for poi
bgerp group: 'xalan', name: 'xalan', version: '2.7.1'
......
C: Update MySQL JDBC driver library version.
......@@ -7,12 +7,11 @@ import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.SQLIntegrityConstraintViolationException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException;
import ru.bgcrm.dao.AddressDAO;
import ru.bgcrm.dao.CommonDAO;
import ru.bgcrm.dao.CounterDAO;
......@@ -294,7 +293,7 @@ public class CommonContractDAO
}
catch( SQLException e )
{
if( e instanceof MySQLIntegrityConstraintViolationException )
if( e instanceof SQLIntegrityConstraintViolationException )
{
throw new BGMessageException( "Единый договор c таким номером уже существует!" );
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment