]> andersk Git - moira.git/blobdiff - gen/pobox.dc
New database and column names for Moira2.
[moira.git] / gen / pobox.dc
index 0c1d32968d00362412b30266faa83baafd513144..d35beb022e01822445e4cb3d94c4bfac97679ce0 100644 (file)
@@ -33,10 +33,10 @@ char **argv;
     EXEC SQL END DECLARE SECTION;
 
 #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) {
@@ -62,11 +62,15 @@ char **argv;
        outf = NULL;
     }
 
+    /* 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 x CURSOR FOR SELECT 
-      mit_id, login
-       FROM users WHERE status != 3 and potype="POP";
+      clearid, login
+       FROM users WHERE status != 3 and potype='POP';
     EXEC SQL OPEN x;
     while (1) {
        EXEC SQL FETCH x INTO :id, :login;
@@ -80,9 +84,9 @@ char **argv;
     EXEC SQL CLOSE x;
 
     EXEC SQL DECLARE y CURSOR FOR SELECT 
-      u.mit_id, s.string
+      u.clearid, s.string
        FROM users u, strings s
-       WHERE u.status != 3 and u.potype="SMTP" and u.box_id = s.string_id;
+       WHERE u.status != 3 and u.potype='SMTP' and u.box_id = s.string_id;
     EXEC SQL OPEN y;
     while (1) {
        EXEC SQL FETCH y INTO :id, :string;
This page took 0.238102 seconds and 4 git commands to generate.