Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Placeholders(?) in the prepare statements for executing DBD::Sybase queries

by VSarkiss (Monsignor)
on Jun 29, 2006 at 13:59 UTC ( [id://558317]=note: print w/replies, xml ) Need Help??


in reply to Placeholders(?) in the prepare statements for executing DBD::Sybase queries

I'm not sure why the responses above think you're using FreeTDS or MS SQL Server. From the trace output, you're using CT-Library directly. If that's so, the segmentation fault indicates you either have a version mismatch between your DBD::Sybase and CT-Library, or you've stumbled on a bug in the DBD -- although the latter is highly unlikely for such a simple code snippet.

If you're able, try to re-compile and/or re-install DBD::Sybase, and make sure your LD_LIBRARY_PATH points to the Sybase client version you used in the compilation.

  • Comment on Re: Placeholders(?) in the prepare statements for executing DBD::Sybase queries
  • Download Code

Replies are listed 'Best First'.
Re^2: Placeholders(?) in the prepare statements for executing DBD::Sybase queries
by mpeppler (Vicar) on Jun 30, 2006 at 16:05 UTC
    Actually, this bit
    syb_alloc_cmd() -> CS_COMMAND 30b3a0 for CS_CONNECTION 135260 ct_send(CS_DESCRIBE_INPUT) returned 0 at /usr/local/lib/perl5/site_per +l/5.8.7/sun4-solaris/DBD/Sybase.pm line 133.
    is the clue that the OP is using FreeTDS.

    And yes, that is the reason why the placeholders don't work (yet).

    Michael

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://558317]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-19 22:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found