<?xml version="1.0" encoding="windows-1252"?>
<node id="744583" title="Can DBI modify queries on the fly?" created="2009-02-17 17:42:52" updated="2009-02-17 17:42:52">
<type id="115">
perlquestion</type>
<author id="585085">
kyle</author>
<data>
<field name="doctext">
&lt;p&gt;I'd like to modify queries that are going to the database in a programmatic way without modifying code throughout the whole application.  Specifically, I want to put call stack information in a SQL comment so that they'll show up in the DB's logs.  This means I can't use some external proxy to modify the queries because it won't know what line of code the query came from.
&lt;p&gt;Is this possible?  Is it easy to do with a [mod://DBI] subclass or some such?  Is a module to do this already written?</field>
</data>
</node>
