[llvm-commits] CVS: nightlytest-serverside/SQLUtil.php
Jim Laskey
jlaskey at apple.com
Wed Sep 20 05:12:03 PDT 2006
Changes in directory nightlytest-serverside:
SQLUtil.php updated: 1.2 -> 1.3
---
Log message:
Clean up test records #3
---
Diffs of the changes: (+4 -7)
SQLUtil.php | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
Index: nightlytest-serverside/SQLUtil.php
diff -u nightlytest-serverside/SQLUtil.php:1.2 nightlytest-serverside/SQLUtil.php:1.3
--- nightlytest-serverside/SQLUtil.php:1.2 Wed Sep 20 07:05:38 2006
+++ nightlytest-serverside/SQLUtil.php Wed Sep 20 07:11:49 2006
@@ -17,7 +17,6 @@
$query = "SELECT * FROM tests";
if ($get_query = mysql_query($query)) {
- $count = 0;
while ($row = mysql_fetch_assoc($get_query)) {
$old = $row['program'];
$subpatterns = array();
@@ -27,12 +26,9 @@
$result = $row['result'];
$measure = $row['measure'];
$night = $row['night'];
- $set_query = "UPDATE tests SET program=\"$new\" WHERE night=$night AND program=\"$old\" AND result=\"$result\" AND measure=\"$measure\"";
- print "$set_query<BR>\n";
- $count = $count + 1;
- if ($count > 100) {
- break;
- }
+ $query = "UPDATE tests SET program=\"$new\" WHERE night=$night AND program=\"$old\" AND result=\"$result\" AND measure=\"$measure\"";
+ $set_query = mysql_query($query);
+ mysql_free_result($set_query);
}
}
@@ -41,6 +37,7 @@
$error = mysql_error();
print "<B>$error</B><BR>\n";
}
+ print "<B>DONE</B><BR>\n";
mysql_close($mysql_link);
More information about the llvm-commits
mailing list