提交 56bf7805 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Add MDY to DateStyle in PgServerThread

Client may send just ISO but expect value with secord part just after that,
so append it to client setting too.
上级 d60d8188
......@@ -67,7 +67,7 @@ public class PgServerThread implements Runnable {
private final int secret;
private JdbcStatement activeRequest;
private String clientEncoding = SysProperties.PG_DEFAULT_CLIENT_ENCODING;
private String dateStyle = "ISO";
private String dateStyle = "ISO, MDY";
private final HashMap<String, Prepared> prepared =
new CaseInsensitiveMap<>();
private final HashMap<String, Portal> portals =
......@@ -183,6 +183,9 @@ public class PgServerThread implements Runnable {
// UTF8
clientEncoding = value;
} else if ("DateStyle".equals(param)) {
if (value.indexOf(',') < 0) {
value += ", MDY";
}
dateStyle = value;
}
// extra_float_digits 2
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论