Connection string for postgresql

Code patches written by our users to solve certain "problems" that were not solved, yet.

Moderators: gto, cipto_kh, EgonHugeist, mdaems

Wild_Pointer
Expert Boarder
Expert Boarder
Posts: 162
Joined: 18.03.2008, 13:03
Contact:

Connection string for postgresql

Postby Wild_Pointer » 17.12.2009, 16:35

The formation of postgresql connection string is not as good as it could be. For example if you leave the database name field empty in TZConnection component on connect you'll get error saying dbname is "user=". While this is not a big problem as connection usually has database, user and password assigned, but improvements are welcome (I guess). :)
Also there is a issue of spaces in parameter values. Also quotes and backslashes in parameter values should be escaped by one backslash.

So this is what the patch does.
You do not have the required permissions to view the files attached to this post.

User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Postby mdaems » 19.12.2009, 11:29

SVN Rev 743.
Will also be merged to 6.6-patches

Mark
Image


Return to “User Patches”

Who is online

Users browsing this forum: No registered users and 1 guest