]> andersk Git - moira.git/commitdiff
oracle doesn't do [ and ] in its pseudo-regexps, so don't treat them
authordanw <danw>
Tue, 24 Jun 1997 20:02:56 +0000 (20:02 +0000)
committerdanw <danw>
Tue, 24 Jun 1997 20:02:56 +0000 (20:02 +0000)
specially

server/qvalidate.pc

index 910cef5ca065527c64556267aad6fe32ac375e10..91f1f12c53f37c3414ff049d5d402ca4932d4bee 100644 (file)
@@ -575,9 +575,7 @@ int convert_wildcards(arg)
        switch(*s) {
          case '*': *d++='%'; *d++='%'; break;
          case '?': *d++='_'; break;
-         case '_':
-         case '[':
-         case ']': *d++='*'; *d++ = *s; break;
+         case '_': *d++='*'; *d++ = *s; break;
          case '%': *d++='*'; *d++='%'; *d++='%'; break;
          default: *d++ = *s; break;
        }
@@ -605,9 +603,7 @@ int convert_wildcards_uppercase(arg)
        switch(*s) {
          case '*': *d++='%'; *d++='%'; break;
          case '?': *d++='_'; break;
-         case '_':
-         case '[':
-         case ']': *d++='*'; *d++ = *s; break;
+         case '_': *d++='*'; *d++ = *s; break;
          case '%': *d++='*'; *d++='%'; *d++='%'; break;
          default: *d++=toupper(*s); break;       /* This is the only diff. */
        }
This page took 0.040207 seconds and 5 git commands to generate.