nakagami / firebirdsql

Firebird RDBMS sql driver for Go (golang)
MIT License
224 stars 60 forks source link

Official policy towards URI reserved characters #107

Open the-Arioch opened 4 years ago

the-Arioch commented 4 years ago

This module seems to used URI-styled Firebird conneciton strings. "Seems" because it is not documented on pkg.go.dev at all.

This however creates uncertainty when filename contains "Reserved Characters" as per ch.2.2. of the URI standard - http://tools.ietf.org/html/rfc3986#section-2.2

See for example https://stackoverflow.com/questions/61718778/firebirdsql-cannot-connect-to-database-if-path-contains-hash-symbol

May i suggest that the parameters for Sql.Open be explicititly documented ? Including official stance on abiding/ignoring certain URI componnts and the very URI standard. And including some external links describing possible FB connection strings for novices.

nakagami commented 4 years ago

Sorry, I don't even know exactly.

I am also looking for documentation pull requests.

the-Arioch commented 4 years ago

No one can KNOW about the project strategic gaols and directions, it is the leader who leads and decides what is correct and incorrect :-)

Then the behavior that does not match the arbitrary selected goal would begame a bug. Not the other way around.

First thing is that the project has to decide and declare which way is correct and which is not.