[llvm-commits] CVS: nightlytest-serverside/NightlyTestAccept.cgi
Patrick Jenkins
pjenkins at apple.com
Thu Jul 20 14:44:18 PDT 2006
Changes in directory nightlytest-serverside:
NightlyTestAccept.cgi updated: 1.20 -> 1.21
---
Log message:
When i rewrite the createnight function in nightlytestaccept.cgi i introduced a syntax error into the database query. this should clear that up.
---
Diffs of the changes: (+4 -4)
NightlyTestAccept.cgi | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
Index: nightlytest-serverside/NightlyTestAccept.cgi
diff -u nightlytest-serverside/NightlyTestAccept.cgi:1.20 nightlytest-serverside/NightlyTestAccept.cgi:1.21
--- nightlytest-serverside/NightlyTestAccept.cgi:1.20 Wed Jul 19 20:23:44 2006
+++ nightlytest-serverside/NightlyTestAccept.cgi Thu Jul 20 16:44:05 2006
@@ -381,10 +381,10 @@
my $d = $dbh->prepare("select * from code ORDER BY added DESC");
$d->execute;
- @row = $d->fetchrow_array;
- if(!@row or ($row[1] != $_[1] && $row[2] != $_[2] && $row[3] != $_[3])){
- my $e = $dbh->prepare("insert into code (added, loc, files, dirs) values (\"$_[0]\", $_[1], $_[2], $_[3])");
- $e->execute;
+ @row = $d->fetchrow_hashref;
+ if(!@row || ($row->{'loc'} != $_[1] || $row->{'files'} != $_[2] || $row->{'dirs'} != $_[3])){
+ my $e = $dbh->prepare("insert into code (added, loc, files, dirs) values (\"$_[0]\", $_[1], $_[2], $_[3])");
+ $e->execute;
}
}
More information about the llvm-commits
mailing list