]> andersk Git - moira.git/blobdiff - gen/nfs.dc
New database and column names for Moira2.
[moira.git] / gen / nfs.dc
index d8b68a8eb0bdf8f25d7373b0c859b13972f1cca1..fb2c915b3a5beb5d673f984489e017a5abdb47b4 100644 (file)
@@ -40,10 +40,10 @@ char **argv;
     sprintf(nfs_dir, "%s/nfs", DCM_DIR);
 
 #ifsql INGRES
-    EXEC SQL CONNECT sms;
+    EXEC SQL CONNECT moira;
 #endsql
 #ifsql INFORMIX
-    EXEC SQL DATABASE sms;
+    EXEC SQL DATABASE moira;
 #endsql
 
     changed = do_nfs();
@@ -85,6 +85,10 @@ int do_nfs()
     machs = sq_create();
     lists = sq_create();
 
+    /* The following is declarative, not executed,
+     * and so is dependent on where it is in the file,
+     * not in the order of execution of statements.
+     */
     EXEC SQL WHENEVER SQLERROR GOTO sqlerr;
     EXEC SQL DECLARE s_cursor CURSOR FOR
       SELECT m.name, s.value3
@@ -231,7 +235,7 @@ struct hash *do_everyone()
     EXEC SQL DECLARE l_cursor CURSOR FOR
      SELECT gid, list_id
      FROM list
-     WHERE grp <> 0 AND active != 0;
+     WHERE grouplist != 0 AND active != 0;
     EXEC SQL OPEN l_cursor;
     while (1) {
         EXEC SQL FETCH l_cursor INTO :gid, :lid;
This page took 0.039189 seconds and 4 git commands to generate.