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

Post Reply
Wild_Pointer
Expert Boarder
Expert Boarder
Posts: 164
Joined: 18.03.2008, 13:03
Contact:

Connection string for postgresql

Post by Wild_Pointer »

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:

Post by mdaems »

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

Mark
Image
Post Reply