[Rt-commit] rt branch, query-logging, updated. rt-3.8.8-932-gbd3efe9
Shawn Moore
sartak at bestpractical.com
Tue Sep 28 18:01:18 EDT 2010
The branch, query-logging has been updated
via bd3efe9cfb17f6ff2e481e15357dea71cc13515e (commit)
from a520dc2312148731f89b51c3425bdd9c049b2e0c (commit)
Summary of changes:
lib/RT/Handle.pm | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit bd3efe9cfb17f6ff2e481e15357dea71cc13515e
Author: Shawn M Moore <sartak at bestpractical.com>
Date: Tue Sep 28 18:04:13 2010 -0400
Add RT::Handle->Quote with a warning that you don't need it
diff --git a/lib/RT/Handle.pm b/lib/RT/Handle.pm
index e5af419..f063132 100755
--- a/lib/RT/Handle.pm
+++ b/lib/RT/Handle.pm
@@ -1087,6 +1087,21 @@ sub AddRequestToHistory {
push @{ $self->{QueryHistory} }, $request;
}
+=head2 Quote
+
+Returns the parameter quoted by DBI. B<You almost certainly do not need this.>
+Use bind parameters (C<?>) instead. This is used only outside the scope of interacting
+with the database.
+
+=cut
+
+sub Quote {
+ my $self = shift;
+ my $value = shift;
+
+ return $self->dbh->quote($value);
+}
+
__PACKAGE__->FinalizeDatabaseType;
RT::Base->_ImportOverlays();
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list