]> andersk Git - moira.git/commitdiff
make sure we use proper table names for caching;
authormar <mar>
Thu, 11 Jan 1990 18:31:01 +0000 (18:31 +0000)
committermar <mar>
Thu, 11 Jan 1990 18:31:01 +0000 (18:31 +0000)
report real error codes, not SMS_INGRES_ERR on basic queries

server/qrtn.qc

index cd4151a87642f10d7a11cc55393618841a9429d8..f182a9ffe9d82aa03ce5719f10040a0cc50c0ebb 100644 (file)
@@ -669,8 +669,8 @@ do_retrieve(q, pqual, psort, action, actarg)
        }
     }
 
-##  inquire_equel (rowcount = "rowcount", errorno = "errorno")
-    if (errorno != 0) return(SMS_INGRES_ERR);
+    if (sms_errcode) return(sms_errcode);
+##  inquire_equel (rowcount = "rowcount")
     return ((rowcount == 0) ? SMS_NO_MATCH : SMS_SUCCESS);
 ##}
 
@@ -694,11 +694,7 @@ do_update(q, argv, qual, action, actarg)
 ##  replace rvar (param (q->tlist, argv))
 ##  where cqual
 
-##  inquire_equel (errorno = "errorno")
-    if (errorno == INGRES_BAD_INT)
-       return(SMS_INTEGER);
-    else if (errorno != 0)
-       return(SMS_INGRES_ERR);
+    if (sms_errcode) return(sms_errcode);
     return(SMS_SUCCESS);
 ##}
 
@@ -725,11 +721,7 @@ do_append(q, argv, pqual, action, actarg)
 ##      append to rtable (param (q->tlist, argv))
     }
 
-##  inquire_equel (errorno = "errorno")
-    if (errorno == INGRES_BAD_INT)
-       return(SMS_INTEGER);
-    else if (errorno != 0)
-       return(SMS_INGRES_ERR);
+    if (sms_errcode) return(sms_errcode);
     return(SMS_SUCCESS);
 ##}
 
@@ -751,8 +743,7 @@ do_delete(q, qual, action, actarg)
     cqual = qual;
 ##  delete rvar where cqual
 
-##  inquire_equel (errorno = "errorno")
-    if (errorno != 0) return(SMS_INGRES_ERR);
+    if (sms_errcode) return(sms_errcode);
     return(SMS_SUCCESS);
 ##}
 
@@ -828,7 +819,7 @@ int *uid;
        return;
     }
 
-    if (name_to_id(name, "STRING", &k_id) == SMS_SUCCESS)
+    if (name_to_id(name, "STRINGS", &k_id) == SMS_SUCCESS)
       *kid = -k_id;
 
     if (!ok) {
@@ -836,7 +827,7 @@ int *uid;
        return;
     }
 
-    if (name_to_id(login, "USER", uid) != SMS_SUCCESS)
+    if (name_to_id(login, "USERS", uid) != SMS_SUCCESS)
       *uid = 0;
 
     if (*kid == 0)
This page took 0.096911 seconds and 5 git commands to generate.