]> andersk Git - moira.git/blobdiff - gen/mitdir.dc
New database and column names for Moira2.
[moira.git] / gen / mitdir.dc
index 666264e0b80f67e6bcec17fcaec5397544d790a2..6db511d7dc3f1beb9ffa7c89d6eb46f6eeb81dea 100644 (file)
@@ -40,10 +40,10 @@ char **argv;
     initialize_sms_error_table();
 
 #ifsql INGRES
-    EXEC SQL CONNECT sms;
+    EXEC SQL CONNECT moira;
 #endsql
 #ifsql INFORMIX
-    EXEC SQL DATABASE sms;
+    EXEC SQL DATABASE moira;
 #endsql
 
     if (argc == 2) {
@@ -100,6 +100,10 @@ FILE *out;
     char affil[5];
     EXEC SQL END DECLARE SECTION;
 
+    /* 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;
 
     /* get locks */
@@ -119,7 +123,7 @@ FILE *out;
 
     EXEC SQL DECLARE u_cursor1 CURSOR FOR
       SELECT users_id, login, first, middle, last,
-            mit_year, mit_dept, office_addr, office_phone,
+            affiliation, department, office_addr, office_phone,
             home_addr, home_phone, potype, box_id
       FROM users
       WHERE status != 3;
This page took 0.042352 seconds and 4 git commands to generate.