[prev in list] [next in list] [prev in thread] [next in thread] 

List:       msql
Subject:    Re: trouble importing data using separatation character option
From:       "J. M. Castagnetto" <jcastagnetto () hotmail ! com>
Date:       1999-02-28 0:18:24
[Download RAW message or body]

Hello Mike and all (yet again),

I did not read all of your message. Sorry for that. You have a more 
general modification that should improve msqlimport.

BAMBI: Could it be included in the next version?

Best regards

Mike wrote:
[...snip...]

>If the comma behaviour is desired than msqlimport should be made a 
little
>smarter to allow escaped chars for the seperator.  Not a big effort at 
all:
>
>        case 's':
>            sep = *optarg;
>            break;
>
>becomes:
>        case 's':
>if (*optarg == '\\') { /* parse escape sequences */
>    char target[2];
>    if (sscanf(optarg,"%s",target)==0) {
>        printf("Error parsing -s switch of '%s'\n",optarg);
>        exit(EX_USAGE);
>    }
>    sep = target[0];
>}
>else
>                sep = *optarg;
>}
>            break;

=====
Jesus M. Castagnetto - jcastagnetto@hotmail.com
Pilot stuff & etc.:
  http://www.geocities.com/ResearchTriangle/Lab/1059/
LAB: http://www.scripps.edu/research/metallo
Metalloprotein DB: http://metallo.scripps.edu/
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic