~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to client/mysql.cc

Merge from trunk 

Show diffs side-by-side

added added

removed removed

Lines of Context:
516
516
  { "LOCKS", 0, 0, 0, ""},
517
517
  { "LOGS", 0, 0, 0, ""},
518
518
  { "LONG", 0, 0, 0, ""},
519
 
  { "LONGBLOB", 0, 0, 0, ""},
520
519
  { "LONGTEXT", 0, 0, 0, ""},
521
520
  { "LOOP", 0, 0, 0, ""},
522
521
  { "LOW_PRIORITY", 0, 0, 0, ""},
542
541
  { "MAX_UPDATES_PER_HOUR", 0, 0, 0, ""},
543
542
  { "MAX_USER_CONNECTIONS", 0, 0, 0, ""},
544
543
  { "MEDIUM", 0, 0, 0, ""},
545
 
  { "MEDIUMBLOB", 0, 0, 0, ""},
546
544
  { "MEDIUMTEXT", 0, 0, 0, ""},
547
545
  { "MERGE", 0, 0, 0, ""},
548
546
  { "MICROSECOND", 0, 0, 0, ""},
718
716
  { "TIMESTAMP", 0, 0, 0, ""},
719
717
  { "TIMESTAMPADD", 0, 0, 0, ""},
720
718
  { "TIMESTAMPDIFF", 0, 0, 0, ""},
721
 
  { "TINYBLOB", 0, 0, 0, ""},
722
719
  { "TINYINT", 0, 0, 0, ""},
723
720
  { "TINYTEXT", 0, 0, 0, ""},
724
721
  { "TO", 0, 0, 0, ""},
1143
1140
  window_resize(0);
1144
1141
#endif
1145
1142
 
1146
 
  put_info("Welcome to the MySQL monitor.  Commands end with ; or \\g.",
 
1143
  put_info("Welcome to the Drizzle client..  Commands end with ; or \\g.",
1147
1144
           INFO_INFO);
1148
1145
  sprintf((char*) glob_buffer.ptr(),
1149
 
          "Your MySQL connection id is %lu\nServer version: %s\n",
 
1146
          "Your Drizzle connection id is %lu\nServer version: %s\n",
1150
1147
          mysql_thread_id(&mysql), server_version_string(&mysql));
1151
1148
  put_info((char*) glob_buffer.ptr(),INFO_INFO);
1152
1149
 
2404
2401
    cmd++;
2405
2402
  }
2406
2403
 
2407
 
  /* hash MySQL functions (to be implemented) */
 
2404
  /* hash Drizzle functions (to be implemented) */
2408
2405
 
2409
2406
  /* hash all database names */
2410
2407
  if (mysql_query(&mysql,"show databases") == 0)
2709
2706
          return com_server_help(buffer,line,help_arg);
2710
2707
  }
2711
2708
 
2712
 
  put_info("\nFor information about MySQL products and services, visit:\n"
2713
 
           "   http://www.mysql.com/\n"
2714
 
           "For developer information, including the MySQL Reference Manual, "
2715
 
           "visit:\n"
2716
 
           "   http://dev.mysql.com/\n"
2717
 
           "To buy MySQL Network Support, training, or other products, visit:\n"
2718
 
           "   https://shop.mysql.com/\n", INFO_INFO);
2719
 
  put_info("List of all MySQL commands:", INFO_INFO);
 
2709
  put_info("List of all Drizzle commands:", INFO_INFO);
2720
2710
  if (!named_cmds)
2721
2711
    put_info("Note that all text commands must be first on line and end with ';'",INFO_INFO);
2722
2712
  for (i = 0; commands[i].name; i++)
3028
3018
    case MYSQL_TYPE_FLOAT:       return "FLOAT";
3029
3019
    case MYSQL_TYPE_LONG:        return "LONG";
3030
3020
    case MYSQL_TYPE_LONGLONG:    return "LONGLONG";
3031
 
    case MYSQL_TYPE_LONG_BLOB:   return "LONG_BLOB";
3032
 
    case MYSQL_TYPE_MEDIUM_BLOB: return "MEDIUM_BLOB";
3033
3021
    case MYSQL_TYPE_NULL:        return "NULL";
3034
3022
    case MYSQL_TYPE_SET:         return "SET";
3035
3023
    case MYSQL_TYPE_SHORT:       return "SHORT";
3037
3025
    case MYSQL_TYPE_TIME:        return "TIME";
3038
3026
    case MYSQL_TYPE_TIMESTAMP:   return "TIMESTAMP";
3039
3027
    case MYSQL_TYPE_TINY:        return "TINY";
3040
 
    case MYSQL_TYPE_TINY_BLOB:   return "TINY_BLOB";
3041
3028
    case MYSQL_TYPE_VAR_STRING:  return "VAR_STRING";
3042
3029
    case MYSQL_TYPE_YEAR:        return "YEAR";
3043
3030
    default:                     return "?-unknown-?";