提交 bfdfcceb authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Announce PostgreSQL version 8.2.23

上级 09550223
...@@ -992,7 +992,7 @@ public class Parser { ...@@ -992,7 +992,7 @@ public class Parser {
buff.append("'ISO' AS DATESTYLE FROM DUAL"); buff.append("'ISO' AS DATESTYLE FROM DUAL");
} else if (readIf("SERVER_VERSION")) { } else if (readIf("SERVER_VERSION")) {
// for PostgreSQL compatibility // for PostgreSQL compatibility
buff.append("'8.1.4' AS SERVER_VERSION FROM DUAL"); buff.append("'8.2.23' AS SERVER_VERSION FROM DUAL");
} else if (readIf("SERVER_ENCODING")) { } else if (readIf("SERVER_ENCODING")) {
// for PostgreSQL compatibility // for PostgreSQL compatibility
buff.append("'UTF8' AS SERVER_ENCODING FROM DUAL"); buff.append("'UTF8' AS SERVER_ENCODING FROM DUAL");
......
...@@ -392,7 +392,7 @@ public class PgServer implements Service { ...@@ -392,7 +392,7 @@ public class PgServer implements Service {
* @return the server name and version * @return the server name and version
*/ */
public static String getVersion() { public static String getVersion() {
return "PostgreSQL 8.1.4 server protocol using H2 " + return "PostgreSQL 8.2.23 server protocol using H2 " +
Constants.getFullVersion(); Constants.getFullVersion();
} }
......
...@@ -949,7 +949,7 @@ public class PgServerThread implements Runnable { ...@@ -949,7 +949,7 @@ public class PgServerThread implements Runnable {
sendParameterStatus("integer_datetimes", "off"); sendParameterStatus("integer_datetimes", "off");
sendParameterStatus("is_superuser", "off"); sendParameterStatus("is_superuser", "off");
sendParameterStatus("server_encoding", "SQL_ASCII"); sendParameterStatus("server_encoding", "SQL_ASCII");
sendParameterStatus("server_version", "8.1.4"); sendParameterStatus("server_version", "8.2.23");
sendParameterStatus("session_authorization", userName); sendParameterStatus("session_authorization", userName);
sendParameterStatus("standard_conforming_strings", "off"); sendParameterStatus("standard_conforming_strings", "off");
// TODO PostgreSQL TimeZone // TODO PostgreSQL TimeZone
......
...@@ -40,7 +40,7 @@ public class TestShow extends TestBase { ...@@ -40,7 +40,7 @@ public class TestShow extends TestBase {
assertResult("read committed", stat, "SHOW DEFAULT_TRANSACTION_ISOLATION"); assertResult("read committed", stat, "SHOW DEFAULT_TRANSACTION_ISOLATION");
assertResult("read committed", stat, "SHOW TRANSACTION ISOLATION LEVEL"); assertResult("read committed", stat, "SHOW TRANSACTION ISOLATION LEVEL");
assertResult("ISO", stat, "SHOW DATESTYLE"); assertResult("ISO", stat, "SHOW DATESTYLE");
assertResult("8.1.4", stat, "SHOW SERVER_VERSION"); assertResult("8.2.23", stat, "SHOW SERVER_VERSION");
assertResult("UTF8", stat, "SHOW SERVER_ENCODING"); assertResult("UTF8", stat, "SHOW SERVER_ENCODING");
} }
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论