| |
|
Line 9
|
Parallel
|
Line 9
|
Parallel
|
| 9 |
|
9 |
|
| 10 |
package Codestriker::Model::File; |
10 |
package Codestriker::Model::File; |
| 11 |
|
11 |
|
| 12 |
use Codestriker::Model::Delta; |
|
|
| 13 |
|
|
|
| 14 |
use strict; |
12 |
use strict; |
|
|
13 |
use Codestriker::Model::Delta; |
| 15 |
|
14 |
|
| 16 |
# Create the appropriate delta rows for this review. Note this gets called |
15 |
# Create the appropriate delta rows for this review. Note this gets called |
| 17 |
# from Topic::create(), which controls the transaction commit/rollback. |
16 |
# from Topic::create(), which controls the transaction commit/rollback. |
| |
| |
|
Line 105
|
Parallel
|
Line 104
|
Parallel
|
| 105 |
# Setup the appropriate statement and execute it. |
104 |
# Setup the appropriate statement and execute it. |
| 106 |
my $select_file = |
105 |
my $select_file = |
| 107 |
$dbh->prepare_cached('SELECT filename, revision, topicoffset, ' . |
106 |
$dbh->prepare_cached('SELECT filename, revision, topicoffset, ' . |
| 108 |
'binaryfile, sequence FROM topicfile WHERE topicid = ? ' . |
107 |
'binaryfile, sequence FROM topicfile ' . |
|
|
108 |
'WHERE topicid = ? ' . |
| 109 |
'ORDER BY sequence'); |
109 |
'ORDER BY sequence'); |
| 110 |
my $success = defined $select_file; |
110 |
my $success = defined $select_file; |
| 111 |
$success &&= $select_file->execute($topicid); |
111 |
$success &&= $select_file->execute($topicid); |
| |