]> andersk Git - moira.git/blobdiff - server/qrtn.dc
don't try to resolve usernames longer than 8 chars
[moira.git] / server / qrtn.dc
index 3f64b8196a6ce9e32cc1fcb0fd23c3e00bfa13a1..c3dc6e8a6e122e4a7691f50d2c24d1b6ad290010 100644 (file)
@@ -29,7 +29,7 @@ char cdummy[MR_CDUMMY_LEN];
 char stmt_buf[MR_STMTBUF_LEN];
 EXEC SQL END DECLARE SECTION; 
 
-char *Argv[16];
+char *Argv[QMAXARGS];
 
 int ingres_errno = 0;
 int mr_errcode = 0;
@@ -77,7 +77,9 @@ void ingerr()
        break;
 /* These should never come up unless someone breaks the query table */
       case INGRES_NO_CURSOR:
-       mr_errcode = MR_INTERNAL;
+       if (mr_errcode != MR_BUSY &&
+           mr_errcode != MR_DEADLOCK)
+         mr_errcode = MR_INTERNAL;
        com_err(whoami, 0, "Cursor not opened");
        break;
       case INGRES_NO_STMT:
This page took 0.031255 seconds and 4 git commands to generate.