Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: DBI quoting when I don't want it to

by Tardis (Pilgrim)
on Aug 22, 2002 at 01:56 UTC ( [id://191901]=note: print w/replies, xml ) Need Help??


in reply to Re: DBI quoting when I don't want it to
in thread DBI quoting when I don't want it to

Yep sorry my bad. That was a mistake.

The code actually does the right thing (INSERT for new objects, UPDATE for existing). Since the SQL is automatically generated (and since DBI doesn't let you see the actual SQL that goes through to the DB (unless you want an awful lot of debugging information as well), I just typed them in off the top of my head.

The top of my head needs a bit of work :-)

Anyway, the SQL statements generated are syntacticly correct, except when a quoted date comes into the arena :-)

I can't use the suggestion you offer unfortunately, because all SQL is generated on the fly, based on configuration data.

Without looking at each component of each INSERT/UPDATE, I don't know which ones I have to treat 'specially', and which ones I can use placeholders for.

  • Comment on Re: Re: DBI quoting when I don't want it to

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2024-04-25 19:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found