~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/show.cc

  • Committer: Brian Aker
  • Date: 2009-05-23 00:24:25 UTC
  • mfrom: (1034.1.7 merge)
  • Revision ID: brian@gaz-20090523002425-rd9slkqwe2ip0xkh
Merge of Brian

Show diffs side-by-side

added added

removed removed

Lines of Context:
264
264
  if (wild && !wild[0])
265
265
    wild=0;
266
266
 
267
 
  memset(&table_list, 0, sizeof(table_list));
268
 
 
269
267
  if (!(dirp = my_dir(path,MYF(dir ? MY_WANT_STAT : 0))))
270
268
  {
271
269
    if (my_errno == ENOENT)
2324
2322
  char key[MAX_DBKEY_LENGTH];
2325
2323
  uint32_t key_length;
2326
2324
 
2327
 
  memset(&table_list, 0, sizeof(TableList));
2328
2325
  memset(&tbl, 0, sizeof(Table));
2329
2326
 
2330
2327
  table_list.table_name= table_name->str;
3961
3958
    table_list         pointer to table_list
3962
3959
 
3963
3960
  RETURN
3964
 
    0   success
3965
 
    1   error
 
3961
    true on error
3966
3962
*/
3967
3963
 
3968
 
int mysql_schema_table(Session *session, LEX *, TableList *table_list)
 
3964
bool mysql_schema_table(Session *session, LEX *, TableList *table_list)
3969
3965
{
3970
3966
  Table *table;
3971
3967
  if (!(table= table_list->schema_table->create_table(session, table_list)))
3972
 
    return(1);
 
3968
    return true;
3973
3969
  table->s->tmp_table= SYSTEM_TMP_TABLE;
3974
3970
  /*
3975
3971
    This test is necessary to make
3989
3985
  session->derived_tables= table;
3990
3986
  table_list->select_lex->options |= OPTION_SCHEMA_TABLE;
3991
3987
 
3992
 
  return(0);
 
3988
  return false;
3993
3989
}
3994
3990
 
3995
3991
 
4003
3999
    schema_table_idx     index of 'schema_tables' element
4004
4000
 
4005
4001
  RETURN
4006
 
    0   success
4007
 
    1   error
 
4002
    true on error
4008
4003
*/
4009
4004
 
4010
 
int make_schema_select(Session *session, Select_Lex *sel,
4011
 
                       enum enum_schema_tables schema_table_idx)
 
4005
bool make_schema_select(Session *session, Select_Lex *sel,
 
4006
                        enum enum_schema_tables schema_table_idx)
4012
4007
{
4013
4008
  InfoSchemaTable *schema_table= get_schema_table(schema_table_idx);
4014
4009
  LEX_STRING db, table;
4024
4019
      !sel->add_table_to_list(session, new Table_ident(session, db, table, 0),
4025
4020
                              0, 0, TL_READ))
4026
4021
  {
4027
 
    return(1);
 
4022
    return true;
4028
4023
  }
4029
 
  return(0);
 
4024
  return false;
4030
4025
}
4031
4026
 
4032
4027