提交 373e469f 编写于 作者: S Serge Rider

Postgre code cleanup

上级 02b84e65
......@@ -48,11 +48,6 @@ public class PostgreDataSourceProvider extends JDBCDataSourceProvider implements
// Set utf-8 as default charset
connectionsProps.put("characterEncoding", "utf-8");
connectionsProps.put("tinyInt1isBit", "false");
// Auth plugins
// connectionsProps.put("authenticationPlugins",
// "com.mysql.jdbc.authentication.MysqlClearPasswordPlugin," +
// "com.mysql.jdbc.authentication.MysqlOldPasswordPlugin," +
// "org.jkiss.jdbc.mysql.auth.DialogAuthenticationPlugin");
}
public static Map<String,String> getConnectionsProps() {
......
......@@ -67,38 +67,5 @@ public class PostgreServerHome extends JDBCClientHome {
public String getDataDirectory() {
return dataDirectory;
}
/*
private String getFullServerVersion()
{
String cmd = new File(
new File(getHomePath(), "bin"),
MySQLUtils.getMySQLConsoleBinaryName()).getAbsolutePath();
try {
Process p = Runtime.getRuntime().exec(new String[] {cmd, "-V"});
try {
BufferedReader input = new BufferedReader(new InputStreamReader(p.getInputStream()));
try {
String line;
while ((line = input.readLine()) != null) {
int pos = line.indexOf("Distrib ");
if (pos != -1) {
pos += 8;
int pos2 = line.indexOf(",", pos);
return line.substring(pos, pos2);
}
}
} finally {
IOUtils.close(input);
}
} finally {
p.destroy();
}
}
catch (Exception ex) {
log.warn("Error reading MySQL server version from " + cmd, ex);
}
return null;
}
*/
}
......@@ -34,7 +34,7 @@ import org.jkiss.dbeaver.ui.data.managers.BaseValueManager;
import org.jkiss.dbeaver.ui.dialogs.data.DefaultValueViewDialog;
/**
* MySQL ENUM value manager
* PostgreSQL ENUM value manager
*/
public class PostgreEnumValueManager extends BaseValueManager {
......
......@@ -33,7 +33,7 @@ import java.util.List;
import java.util.Map;
/**
* MySQL session manager
* Postgre session manager
*/
public class PostgreSessionManager implements DBAServerSessionManager<PostgreSession> {
......
......@@ -39,7 +39,7 @@ import org.jkiss.utils.CommonUtils;
import java.util.Locale;
/**
* MySQLConnectionPage
* PostgreConnectionPage
*/
public class PostgreConnectionPage extends ConnectionPageAbstract implements ICompositeDialogPage
{
......
......@@ -43,7 +43,7 @@ import java.util.ArrayList;
import java.util.List;
/**
* MySQLCreateDatabaseDialog
* PostgreCreateSchemaDialog
*/
public class PostgreCreateSchemaDialog extends BaseDialog
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册