- Timestamp:
- Sep 7, 2010, 9:16:10 AM (16 years ago)
- Location:
- branches/eam_branches/ipp-20100823
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
tools/czartool/MySQLDb.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20100823
-
branches/eam_branches/ipp-20100823/tools/czartool/MySQLDb.pm
r28771 r29124 64 64 return $self->{_dbHost}; 65 65 } 66 67 ########################################################################### 68 # 69 # Adds the provided interval to the provided time 70 # 71 ########################################################################### 72 sub addInterval { 73 my ($self, $time, $interval) = @_; 74 75 my $query = $self->{_db}->prepare(<<SQL); 76 SELECT '$time' + INTERVAL $interval; 77 SQL 78 $query->execute; 79 80 return scalar $query->fetchrow_array(); 81 } 66 82 67 83 ###########################################################################
Note:
See TracChangeset
for help on using the changeset viewer.
