[llvm-commits] CVS: nightlytest-serverside/NightlyTestAccept.php

Jim Laskey jlaskey at apple.com
Thu Sep 14 04:40:36 PDT 2006



Changes in directory nightlytest-serverside:

NightlyTestAccept.php updated: 1.12 -> 1.13
---
Log message:

testing #11

---
Diffs of the changes:  (+7 -3)

 NightlyTestAccept.php |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)


Index: nightlytest-serverside/NightlyTestAccept.php
diff -u nightlytest-serverside/NightlyTestAccept.php:1.12 nightlytest-serverside/NightlyTestAccept.php:1.13
--- nightlytest-serverside/NightlyTestAccept.php:1.12	Thu Sep 14 06:34:33 2006
+++ nightlytest-serverside/NightlyTestAccept.php	Thu Sep 14 06:40:22 2006
@@ -89,7 +89,7 @@
  *
  *******************************************************************************/
 $mysql_link = mysql_connect("127.0.0.1", $loginname, $password) or die("Error: could not connect to database!");
-mysql_select_db($database);
+mysql_select_db($database) or die("Error: could not find \"$database\" database!");
 
 if ($print_debug) {
   print "Database connected\n";
@@ -124,13 +124,17 @@
 print "query: $query\n";
 
 $machine_query = mysql_query($query);
-if (!$machine_query) {
+if ($machine_query) {
+  print "machine query okay\n";
+} else {
   $error = mysql_error();
   print "mysql_error: $error\n";
   die;
 }
 $row = mysql_fetch_array($machine_query) or die(mysql_error());
-if (!$row) {
+if ($row) {
+  print "row read okay\n";
+} else {
   $error = mysql_error();
   print "mysql_error: $error\n";
   die;






More information about the llvm-commits mailing list