mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 11:17:57 +08:00
implement useCompression on jdbc connect
This commit is contained in:
@ -13,6 +13,10 @@ try
|
||||
MysqlDataSource ds = new MysqlDataSource();
|
||||
String url = "jdbc:mysql://" + profile.get("host") + ":" + profile.get("port") + "/";
|
||||
|
||||
if ( "true".equals(profile.get("compress")) )
|
||||
{
|
||||
url+="?useCompression=true";
|
||||
}
|
||||
ds.setUrl(url);
|
||||
ds.setUser(profile.get("user"));
|
||||
ds.setPassword(profile.get("password"));
|
||||
|
@ -12,6 +12,10 @@ try
|
||||
MysqlDataSource ds = new MysqlDataSource();
|
||||
String url = "jdbc:mysql://" + profile.get("host") + ":" + profile.get("port") + "/";
|
||||
|
||||
if ( "true".equals(profile.get("compress")) )
|
||||
{
|
||||
url+="?useCompression=true";
|
||||
}
|
||||
ds.setUrl(url);
|
||||
ds.setUser(profile.get("user"));
|
||||
ds.setPassword(profile.get("password"));
|
||||
|
Reference in New Issue
Block a user