ververica / flink-sql-gateway

Apache License 2.0
490 stars 187 forks source link

JDBC base URL must handle trailing slash ('/') #29

Open fpompermaier opened 4 years ago

fpompermaier commented 4 years ago

Currently, when I add a JDBC catalog to the YAML file I need to add the last '/' to the url.

The following config works:

catalogs:
   - name: mypg
     type: jdbc
     default-database: postgres
     username: postgres
     password: mysecretpassword
     base-url: jdbc:postgresql://localhost:5432/

but this doesn't:

     base-url: jdbc:postgresql://localhost:5432
godfreyhe commented 4 years ago

I think this may be the requirement of JDBC catalog