Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000523 [Resin] feature always 12-20-05 08:28 01-17-06 11:03
Reporter anonymous View Status public  
Assigned To
Priority normal Resolution fixed  
Status closed   Product Version 3.0.16
Summary 0000523: Implement toString() for com.caucho.sql.UserPreparedStatement
Description It would be nice if the prepared statment implemenation that resin uses would implement a toString() function.
Additional Information For debugging it is sometimes helpful to just include a quick dump of a prepared statment (eg. System.out.println("QUERY: " + ps);). I realize that I am relying on implementation specific behavior, but I have found it to be pretty useful - especially for tracking down parameters that have not been filled in correctly or parameters that have been numbered wrong.

Since your code appears to be just a simple proxy, the change should be pretty straightforward:

------------- CODE -----------

/**
 * Convert this prepared statment to a string. Only for debugging.
 */
public String toString()
{
  return _pstmt.toString();
}

----------- END CODE -----------
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
12-20-05 08:28 anonymous New Issue
01-17-06 11:03 ferg Status new => closed
01-17-06 11:03 ferg Resolution open => fixed
01-17-06 11:03 ferg Fixed in Version  => 3.0.18
01-17-06 11:03 ferg View Status @0@ => public


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
26 total queries executed.
24 unique queries executed.
Powered by Mantis Bugtracker