RE: sybperl ct_config CS_RETRY_COUNT

Michael Peppler <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.sybase
Message-ID <[email protected]>
On Fri, 2005-08-26 at 15:33 +0900, Ashish Gupta wrote:
> Hi Michael,
> 
> I still get an error.
> 
> I tried the command :
> 
> 	ct_config(CS_SET, 9173,   2, CS_INT_TYPE);
> 
> 
> And the following error was reported :
> 
> Open Client Message:
> Message number: LAYER = (1) ORIGIN = (1) SEVERITY = (1) NUMBER = (5)
> Message String: ct_config(): user api layer: external error: An illegal
> value of 9173 given for parameter property.

Indeed - the problem is that CS_RETRY_COUNT is a connection property, to
be set with ct_con_props() before the connection is attempted. This is
handled differently in this module, and will require a patch to the code
to get working. You can see how the other connection properties are
handled in CTlib.xs around line 6065 in my copy.

Michael
-- 
Michael Peppler  -  [email protected]  -  http://www.peppler.org/
Sybase DBA/Developer
Sybase on Linux FAQ: http://www.peppler.org/FAQ/linux.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.