pgjdbc/pgjdbc GitHub issues and pull requests (mirror)  
help / color / mirror / Atom feed
From: ivostoykov (@ivostoykov) <[email protected]>
To: pgjdbc/pgjdbc <[email protected]>
Subject: [pgjdbc/pgjdbc] issue #2694: the url is invalid
Date: Mon, 05 Dec 2022 22:21:04 +0000
Message-ID: <[email protected]> (raw)

**I'm submitting a potential issue**

  <!--- What kind of an issue is this? Put an `x` in all the boxes that apply: -->
- [x] bug report
- [ ] feature request
    

**Describe the issue**
Trying to connect the free db hosting located on db.bit.io using a SQL IDE client.  I've got a connection string error.

**Driver Version?**  42.5.1

**Java Version?** 11.0.11+9-Ubuntu-0ubuntu2.18.04

**OS Version?** Linux Ubuntu 22.04 LTS

**PostgreSQL Version?** 14

**To Reproduce**
Using a connection string URL like postgresql://aaa:[email protected]/aaa/bbb
**aaa/bbb** is the name of the database. At the same time **aaa** is the username as well

**Expected behaviour**
to connect aaa/bbb databse
But got an error "_According to the driver "PostgreSQL", the URL "postgresql://aaa:[email protected]/aaa/bbb" is invalid._"

This text of the error is reported by the Squirrel SQL client I'm using to connect
Tried to set the driver properties individually, bypassing the query string parsing. But the connection still fails.
No problem to connect using **pg** library in NodeJs with the same credentials. 

**Logs**
no PostgreSQL logs are available


view thread (8+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: github://pgjdbc/pgjdbc
  Cc: [email protected], [email protected]
  Subject: Re: [pgjdbc/pgjdbc] issue #2694: the url is invalid
  In-Reply-To: <<[email protected]>>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox