Connection: Password and the char ';'

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
gozul
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 24.01.2009, 08:26

Connection: Password and the char ';'

Post by gozul »

Hello,
The connection don't work if I use the ';' char in password.
I changed the delimiter from ';' to '¿' and it works.
Thanks.
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Can you tell us what db server you're working on? Maybe we can fix this issue by the right escaping/quoting of the password.

Mark
Image
gozul
Fresh Boarder
Fresh Boarder
Posts: 2
Joined: 24.01.2009, 08:26

Post by gozul »

Thanks for answer.
I tested with Oracle db. 10.2.0
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Somebody should look here (ZdbcOracle.pas, "Open" method):
FPlainDriver.AttrSet(FSessionHandle, OCI_HTYPE_SESSION, PAnsiChar(string(Password)),
Length(Password), OCI_ATTR_PASSWORD, FErrorHandle);

This function is invokes the OCI call "OCIAttrSet". Now the big question is how this OCI call expects the input is encoded/escaped for a password value. Can you find out? I'm not an OCI expert and don't have an oracle installation to try.

Mark

Mark
Image
Post Reply