Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Re: Calling SQL with embedded quotes

by c-era (Curate)
on May 21, 2002 at 12:40 UTC ( #168095=note: print w/replies, xml ) Need Help??

in reply to Re: Calling SQL with embedded quotes
in thread Calling SQL with embedded quotes

I have to second use DBI instead. Also, you should get in the habit of using placeholders and binding, as they can make a huge difference on performance.

Where I'm working now, most of our old code didn't use placeholders and binding. Now that we are literally doing 1000X more transactions then when the program was written, we are feeling the pain. We've gone back and started to change all of our old code, and it has made a huge difference. Not only are we able to keep up now, but the program now responds noticeably faster then it did before. I see using placeholders and binding like using strict and warnings, you may not think you need to use them, but if you don't use them, it will come back to haunt you.

PS We use an Oracle database.

PPS We are doing this to both our perl and java code, and both languages are benifiting from using placeholders.

  • Comment on Re: Re: Calling SQL with embedded quotes

Replies are listed 'Best First'.
Re: Re: Re: Calling SQL with embedded quotes
by IlyaM (Parson) on May 21, 2002 at 14:51 UTC
    Note that while usually usage of placeholders is standart way to deal with such problems and it is highly recomended with most databases in case of Sybase implementation of placeholders have a number of different problems. It is covered in POD documentation for DBD::Sybase in chapter 'Using ? Placeholders & bind parameters to $sth->execute'.

    Ilya Martynov (

Re: Re: Re: Calling SQL with embedded quotes
by mpeppler (Vicar) on May 21, 2002 at 16:11 UTC

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (2)
As of 2022-01-23 09:07 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (63 votes). Check out past polls.