Skip to content

Commit

Permalink
Add POSTGRES_SUPPORTED_DOC_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
psainics committed Dec 17, 2024
1 parent de6322f commit 13fe595
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ public final class DBUtils {

public static final Calendar PURE_GREGORIAN_CALENDAR = createPureGregorianCalender();
public static final String MYSQL_SUPPORTED_DOC_URL = "https://dev.mysql.com/doc/mysql-errors/9.0/en/";
public static final String POSTGRES_SUPPORTED_DOC_URL =
"https://www.postgresql.org/docs/current/errcodes-appendix.html";

// Java by default uses October 15, 1582 as a Gregorian cut over date.
// Any timestamp created with time less than this cut over date is treated as Julian date.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import io.cdap.cdap.api.exception.ErrorCategory;
import io.cdap.cdap.api.exception.ErrorType;
import io.cdap.plugin.db.DBErrorDetailsProvider;
import io.cdap.plugin.util.DBUtils;

import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -71,7 +72,7 @@ public class PostgresErrorDetailsProvider extends DBErrorDetailsProvider {

@Override
protected String getExternalDocumentationLink() {
return "https://www.postgresql.org/docs/current/errcodes-appendix.html";
return DBUtils.POSTGRES_SUPPORTED_DOC_URL;
}

@Override
Expand Down

0 comments on commit 13fe595

Please sign in to comment.