Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

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.

Replies are listed 'Best First'.
Re^2: Can DBI modify queries on the fly?
by jfroebe (Parson) 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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://744589]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (4)
As of 2018-05-26 08:33 GMT
Find Nodes?
    Voting Booth?