[llvm-commits] CVS: nightlytest-serverside/NightlyTestAccept.php
Jim Laskey
jlaskey at apple.com
Thu Sep 14 04:31:49 PDT 2006
Changes in directory nightlytest-serverside:
NightlyTestAccept.php updated: 1.10 -> 1.11
---
Log message:
testing #9
---
Diffs of the changes: (+20 -6)
NightlyTestAccept.php | 26 ++++++++++++++++++++------
1 files changed, 20 insertions(+), 6 deletions(-)
Index: nightlytest-serverside/NightlyTestAccept.php
diff -u nightlytest-serverside/NightlyTestAccept.php:1.10 nightlytest-serverside/NightlyTestAccept.php:1.11
--- nightlytest-serverside/NightlyTestAccept.php:1.10 Thu Sep 14 06:26:18 2006
+++ nightlytest-serverside/NightlyTestAccept.php Thu Sep 14 06:31:35 2006
@@ -121,14 +121,28 @@
*******************************************************************************/
function DoesMachineExist($uname, $hardware, $os, $name, $nickname, $gcc_version) {
$query = "SELECT * FROM machine WHERE uname=\"$uname\" AND nickname=\"$nickname\" AND gcc=\"$gcc_version\"";
- $machine_query = mysql_query($query) or die(mysql_error());
+if ($print_debug) {
+ print "query: $query\n";
+}
+
+ $machine_query = mysql_query($query);
+ if (!$machine_query) {
+ $error = mysql_error();
+ print "mysql_error: $error\n";
+ die;
+ }
$row = mysql_fetch_array($machine_query) or die(mysql_error());
- mysql_free_result($machine_query);
-
- if ($print_debug) {
- print "row: $row\n";
+ if (!$row) {
+ $error = mysql_error();
+ print "mysql_error: $error\n";
+ die;
}
-
+ mysql_free_result($machine_query);
+
+// $machine_query = mysql_query($query) or die(mysql_error());
+// $row = mysql_fetch_array($machine_query) or die(mysql_error());
+// mysql_free_result($machine_query);
+
if($row &&
strcmp($row['uname'], $uname) == 0 &&
strcmp($row['hardware'], $hardware) == 0 &&
More information about the llvm-commits
mailing list