Changeset 29087
- Timestamp:
- Aug 31, 2010, 2:53:56 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/perl/ippToPsps/IppToPspsDb.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/perl/ippToPsps/IppToPspsDb.pm
r29082 r29087 39 39 # 40 40 # Returns a info about one particular batch 41 # 42 ########################################################################### 43 sub getSingleBatch{ 44 my ($self, $batch_id, $batches) = @_; 45 46 my $query = $self->{_db}->prepare(<<SQL); 47 SELECT created, exp_id, batch_id, survey_id, deleted, dvo_db 48 FROM batches 49 WHERE batch_id = $batch_id 50 SQL 51 52 $query->execute; 53 ${$batches} = $query->fetchall_arrayref(); 54 my $count = scalar @{${$batches}}; 55 56 printf( "* Found %d batch%s\n", $count, ($count==1) ? "" : "es"); 57 return $count; 58 } 59 60 ########################################################################### 61 # 62 # Returns a info about one particular batch on the datastore 41 63 # 42 64 ########################################################################### … … 149 171 150 172 my $processed = $query->fetchrow_array(); 151 152 if ($processed) {print "* Exposure ID '$expId' has already been processed\n";}153 173 154 174 return $processed;
Note:
See TracChangeset
for help on using the changeset viewer.
