~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/internal/mf_wcomp.cc

  • Committer: Brian Aker
  • Date: 2010-01-22 00:53:13 UTC
  • Revision ID: brian@gaz-20100122005313-jmizcbcdi1lt4tcx
Revert db patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* Funktions for comparing with wild-cards */
17
17
 
18
 
#include "mysys_priv.h"
 
18
#include "drizzled/internal/mysys_priv.h"
19
19
 
20
20
        /* Test if a string is "comparable" to a wild-card string */
21
21
        /* returns 0 if the strings are "comparable" */
22
22
 
23
 
char wild_many='*';
24
 
char wild_one='?';
25
 
char wild_prefix=0; /* QQ this can potentially cause a SIGSEGV */
 
23
char wild_many='%';
 
24
char wild_one='_';
 
25
char wild_prefix= '\\';
26
26
 
27
27
int wild_compare(register const char *str, register const char *wildstr,
28
28
                 bool str_is_pattern)