[Rt-commit] rt branch, 4.0/pg-session-last-updated-fix, updated. rt-4.0.6-128-g8d12812

? sunnavy sunnavy at bestpractical.com
Fri Jun 15 17:59:02 EDT 2012


The branch, 4.0/pg-session-last-updated-fix has been updated
       via  8d1281282b4b12c0d923f76536bbca3399a85d50 (commit)
      from  c3bf6c582b7a0e548c9c218f8d683a325de2fd1c (commit)

Summary of changes:
 lib/RT/Interface/Web/Session.pm |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

- Log -----------------------------------------------------------------
commit 8d1281282b4b12c0d923f76536bbca3399a85d50
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Sat Jun 16 05:56:22 2012 +0800

    use separate sth for the update_last_updated stuff to avoid conflict

diff --git a/lib/RT/Interface/Web/Session.pm b/lib/RT/Interface/Web/Session.pm
index bbda7aa..d27ccb0 100644
--- a/lib/RT/Interface/Web/Session.pm
+++ b/lib/RT/Interface/Web/Session.pm
@@ -94,15 +94,15 @@ sub Class {
             my $self    = shift;
             my $session = shift;
             local $self->{dbh}->{RaiseError} = 1;
-            if ( !defined $self->{update_sth} ) {
-                $self->{update_sth} = $self->{dbh}->prepare_cached(
+            if ( !defined $self->{update_last_updated} ) {
+                $self->{update_last_updated} = $self->{dbh}->prepare_cached(
                     qq{
                 UPDATE $self->{'table_name'} SET LastUpdated = NOW() WHERE id = ?}
                 );
             }
 
-            $self->{update_sth}->bind_param( 1, $session->{data}->{_session_id} );
-            $self->{update_sth}->execute;
+            $self->{update_last_updated}->bind_param( 1, $session->{data}->{_session_id} );
+            $self->{update_last_updated}->execute;
         };
     }
     return $class;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list