~mysql/myodbc/5.2

« back to all changes in this revision

Viewing changes to driver/parse.c

  • Committer: Hemant Dangi
  • Date: 2013-11-21 13:38:38 UTC
  • mfrom: (1052.2.68 5.1)
  • Revision ID: hemant.dangi@oracle.com-20131121133838-5vqq9nbannbd2sg7
Bug#16920750: SQLFOREIGNKEYS WITH FLAG_NO_INFORMATION_SCHEMA OPTION RETURNS BAD RESULTS

Show diffs side-by-side

added added

removed removed

Lines of Context:
376
376
}
377
377
 
378
378
 
 
379
const char * find_first_token(CHARSET_INFO *charset, const char * begin,
 
380
                        const char * end, const char * target)
 
381
{
 
382
  const char * token, *before= end;
 
383
 
 
384
  while ((token= mystr_get_next_token(charset, &begin, end)) != end)
 
385
  {
 
386
    if (!myodbc_casecmp(token, target, strlen(target)))
 
387
    {
 
388
      return token;
 
389
    }
 
390
  }
 
391
 
 
392
  return NULL;
 
393
}
 
394
 
 
395
 
379
396
const char * skip_leading_spaces(const char *str)
380
397
{
381
398
  while (str && isspace(*str))