<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to patches</title><link>https://sourceforge.net/p/p6spy/patches/</link><description>Recent changes to patches</description><atom:link href="https://sourceforge.net/p/p6spy/patches/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 27 Jun 2006 21:44:21 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/p6spy/patches/feed.rss" rel="self" type="application/rss+xml"/><item><title>SQL batch file logger</title><link>https://sourceforge.net/p/p6spy/patches/4/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Appender that writes a trace of JDBC activity into an &lt;br /&gt;
SQL batch file that can be later "replayed" using a &lt;br /&gt;
generic SQL client.&lt;/p&gt;
&lt;p&gt;Usage:&lt;/p&gt;
&lt;p&gt;- compile BatchFileLogger.java with p6spy.jar in &lt;br /&gt;
classpath or copy it into &lt;br /&gt;
com/p6spy/engine/logging/appender subdirectory of the &lt;br /&gt;
project's source and make the project&lt;/p&gt;
&lt;p&gt;- modify the spy.properties file to make p6spy use &lt;br /&gt;
this appender by adding line&lt;/p&gt;
&lt;p&gt;appender=com.p6spy.engine.logging.appender.BatchFileLo&lt;br /&gt;
gger&lt;/p&gt;
&lt;p&gt;and commenting out the existing appender&lt;/p&gt;
&lt;p&gt;#appender=com.p6spy.engine.logging.appender.FileLogger&lt;/p&gt;
&lt;p&gt;- specify an alternative log file name in &lt;br /&gt;
spy.properties so that diagnostic entries to spy.log &lt;br /&gt;
made by p6spy at startup do not mess up your batch. &lt;br /&gt;
Here's how it works for me:&lt;/p&gt;
&lt;p&gt;logfile     = spy.sql&lt;/p&gt;
&lt;p&gt;The appender writes the text of SQL statements as &lt;br /&gt;
well as commit and rollback commands to the specified &lt;br /&gt;
file, each on a new line. For prepared statements the &lt;br /&gt;
effective text resulting from substitution of &lt;br /&gt;
parameter signs with their values is written. Other &lt;br /&gt;
event categories are logged as SQL comments ("-- " &lt;br /&gt;
followed by the category name). Exceptions and text &lt;br /&gt;
are silently discarded. All SQL statements except the &lt;br /&gt;
last one will have a delimiter character ';' appended &lt;br /&gt;
to them.&lt;/p&gt;
&lt;p&gt;This batch format works well with WinSQL. The format &lt;br /&gt;
is hardcoded, so if you want to make it configurable &lt;br /&gt;
you'll have to patch my patch or write your own :)&lt;/p&gt;
&lt;p&gt;Enjoy!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Kosta</dc:creator><pubDate>Tue, 27 Jun 2006 21:44:21 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net7b943b80e536e22792f671b5cef5467015d72c49</guid></item><item><title>JDBC Leak Detecter</title><link>https://sourceforge.net/p/p6spy/patches/3/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Detects JDBC memory leaks - i.e. Connections, &lt;br /&gt;
Statements, and ResultSets that have not been closed.&lt;/p&gt;
&lt;p&gt;Uses a new P6Spy module - simple to use.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Michael Harhen</dc:creator><pubDate>Sun, 27 Feb 2005 23:06:00 -0000</pubDate><guid isPermaLink="false">https://sourceforge.nete86de1834285c3c650e3f3f4e264e4fcfb42ca9e</guid></item><item><title>Exclude resultset log</title><link>https://sourceforge.net/p/p6spy/patches/2/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;p6spy 1.3 always logs the resultset log category.&lt;br /&gt;
Install this patch in the package&lt;br /&gt;
com.p6spy.engine.common and write "resultset" in the&lt;br /&gt;
excludecategories parameter of the spy.properties file&lt;br /&gt;
to get this working.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Diego Espada</dc:creator><pubDate>Thu, 24 Feb 2005 12:58:44 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net3d570e8ca95aa19addfde3eb0d722572d23b1ada</guid></item><item><title>DateFormat patch</title><link>https://sourceforge.net/p/p6spy/patches/1/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The date format used  in the Prepared statement&lt;br /&gt;
was  toString on the date/time object.&lt;br /&gt;
this would cause problem if  we try to reexcecute &lt;br /&gt;
query against database( db expects a date format)&lt;br /&gt;
from the log.&lt;/p&gt;
&lt;p&gt;to fix this i have added a new property called &lt;br /&gt;
databasdialectdateformat  in spy.properties.&lt;br /&gt;
and changed classes P6SpyOptions.java&lt;br /&gt;
and P6PreparedStatement.java  to pick up this&lt;br /&gt;
date format and insert date in this format in the&lt;br /&gt;
queries.&lt;/p&gt;
&lt;p&gt;pls. find the attached dateformat.jar&lt;br /&gt;
for the new source code.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 29 May 2003 21:24:31 -0000</pubDate><guid isPermaLink="false">https://sourceforge.net3b2b726ffc7ef70bf5b16424ed0f3c6ea59a5adb</guid></item></channel></rss>