~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/drizzle.c

  • Committer: Monty Taylor
  • Date: 2008-07-25 17:35:12 UTC
  • mto: This revision was merged to the branch mainline in revision 212.
  • Revision ID: monty@inaugust.com-20080725173512-3zc4jpwwb2ennz3m
Fixed change of mysql.com -> drizzle.com.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 *   Michael 'Monty' Widenius
26
26
 *   Andi Gutmans  <andi@zend.com>
27
27
 *   Zeev Suraski  <zeev@zend.com>
28
 
 *   Jani Tolonen  <jani@drizzle.com>
29
 
 *   Matt Wagner   <matt@drizzle.com>
30
 
 *   Jeremy Cole   <jcole@drizzle.com>
31
 
 *   Tonu Samuel   <tonu@drizzle.com>
32
 
 *   Harrison Fisk <harrison@drizzle.com>
 
28
 *   Jani Tolonen  <jani@mysql.com>
 
29
 *   Matt Wagner   <matt@mysql.com>
 
30
 *   Jeremy Cole   <jcole@mysql.com>
 
31
 *   Tonu Samuel   <tonu@mysql.com>
 
32
 *   Harrison Fisk <harrison@mysql.com>
33
33
 *
34
34
 **/
35
35
 
242
242
/* A structure which contains information on the commands this program
243
243
   can understand. */
244
244
typedef struct {
245
 
  const char *name;             /* User printable name of the function. */
246
 
  char cmd_char;                /* msql command character */
 
245
  const char *name;        /* User printable name of the function. */
 
246
  char cmd_char;        /* msql command character */
247
247
  int (*func)(DYNAMIC_STRING *str,char *); /* Function to call to do the job. */
248
 
  bool takes_params;            /* Max parameters for command */
249
 
  const char *doc;              /* Documentation for this function.  */
 
248
  bool takes_params;        /* Max parameters for command */
 
249
  const char *doc;        /* Documentation for this function.  */
250
250
} COMMANDS;
251
251
 
252
252
 
1581
1581
      char *start= argument;
1582
1582
      my_free(opt_password, MYF(MY_ALLOW_ZERO_PTR));
1583
1583
      opt_password= strdup(argument);
1584
 
      while (*argument) *argument++= 'x';               // Destroy argument
 
1584
      while (*argument) *argument++= 'x';        // Destroy argument
1585
1585
      if (*start)
1586
1586
        start[1]=0 ;
1587
1587
      tty_password= 0;
4238
4238
 
4239
4239
 
4240
4240
/**
4241
 
   Write as many as 52+1 bytes to buff, in the form of a legible duration of time.
 
4241
   Write as many as 52+1 bytes to buff, in the form of a legible
 
4242
   duration of time.
4242
4243
 
4243
4244
   len("4294967296 days, 23 hours, 59 minutes, 60.00 seconds")  ->  52
4244
4245
*/
4485
4486
    DRIZZLE_ROW cur=drizzle_fetch_row(result);
4486
4487
    full_username= strdup(cur[0]);
4487
4488
    part_username= strdup(strtok(cur[0],"@"));
4488
 
    (void) drizzle_fetch_row(result);           // Read eof
 
4489
    (void) drizzle_fetch_row(result);        // Read eof
4489
4490
  }
4490
4491
}
4491
4492
 
4492
 
static int com_prompt(DYNAMIC_STRING *buffer __attribute__((__unused__)), char *line)
 
4493
static int com_prompt(DYNAMIC_STRING *buffer __attribute__((__unused__)),
 
4494
                      char *line)
4493
4495
{
4494
4496
  char *ptr=strchr(line, ' ');
4495
4497
  prompt_counter = 0;