(String url, String vendor)
| 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; |
no test coverage detected