MCPcopy Create free account
hub / github.com/MariaDB/server / CheckURL

Method CheckURL

storage/connect/JdbcInterface.java:60–74  ·  view source on GitHub ↗
(String url, String vendor)

Source from the content-addressed store, hash-verified

58 } // end of GetErrmsg
59
60 protected void CheckURL(String url, String vendor) throws Exception {
61 if (url == null)
62 throw new Exception("URL cannot be null");
63
64 String[] tk = url.split(":", 3);
65
66 if (!tk[0].equals("jdbc") || tk[1] == null)
67 throw new Exception("Invalid URL");
68
69 if (vendor != null && !tk[1].equals(vendor))
70 throw new Exception("Wrong URL for this wrapper");
71
72 // Some drivers use Catalog as Schema
73 CatisSchema = tk[1].equals("mysql") || tk[1].equals("mariadb");
74 } // end of CatalogIsSchema
75
76 public int JdbcConnect(String[] parms, int fsize, boolean scrollable) {
77 int rc = 0;

Callers 6

JdbcConnectMethod · 0.95
JdbcConnectMethod · 0.80
JdbcConnectMethod · 0.80
JdbcConnectMethod · 0.80
JdbcConnectMethod · 0.80
JdbcConnectMethod · 0.80

Calls 2

splitMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected