Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Can DBI modify queries on the fly?

by ikegami (Pope)
on Feb 17, 2009 at 23:14 UTC ( #744589=note: print w/ replies, xml ) Need Help??


in reply to Can DBI modify queries on the fly?

Writing a DBD that proxies/wraps the real DBD sounds more appropriate to me.


Comment on Re: Can DBI modify queries on the fly?
Re^2: Can DBI modify queries on the fly?
by jfroebe (Vicar) on Feb 17, 2009 at 23:35 UTC

    I wonder if using Log4Perl wouldn't be better in the long run. It'll mean a bit of coding to write the plugin to write the info to the database errorlog via a query but once created, it should be a simple thing.

    Jason L. Froebe

    Blog, Tech Blog

      I muled over this, and I still can't figure what Log4perl (note the lowercase 'p') and error logs have to do with the OP's question. Do you know more about what the OP is attempting to do than he is telling us?

      I'm just very blind X_X

Re^2: Can DBI modify queries on the fly?
by DrHyde (Prior) on Feb 18, 2009 at 10:48 UTC
    DBD::Proxy would be a good place to start. It might be as simple as making a copy of it, and replacing the prepare() function with one that adds a SQL comment to queries.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (11)
As of 2014-12-26 22:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls