Unverified 提交 7d646fcf authored 作者: Noel Grandin's avatar Noel Grandin 提交者: GitHub

Merge pull request #796 from katzyn/PgServer

Add MDY to DateStyle in PgServerThread
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论