~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/info_schema/info_schema_columns.cc

  • Committer: Brian Aker
  • Date: 2009-07-23 00:02:03 UTC
  • mfrom: (1093.1.25 captain)
  • Revision ID: brian@gaz-20090723000203-kkrx4udjiiwy869o
Mege Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
1384
1384
  return false;
1385
1385
}
1386
1386
 
 
1387
bool createStatusColumns(vector<const ColumnInfo *>& cols)
 
1388
{
 
1389
  const ColumnInfo *name= new(std::nothrow) ColumnInfo("VARIABLE_NAME",
 
1390
                                                       64,
 
1391
                                                       DRIZZLE_TYPE_VARCHAR,
 
1392
                                                       0,
 
1393
                                                       0,
 
1394
                                                       "Variable_name",
 
1395
                                                       SKIP_OPEN_TABLE);
 
1396
  if (name == NULL)
 
1397
  {
 
1398
    return true;
 
1399
  }
 
1400
 
 
1401
  const ColumnInfo *value= new(std::nothrow) ColumnInfo("VARIABLE_VALUE",
 
1402
                                                        16300,
 
1403
                                                        DRIZZLE_TYPE_VARCHAR,
 
1404
                                                        0,
 
1405
                                                        1,
 
1406
                                                        "Value",
 
1407
                                                        SKIP_OPEN_TABLE);
 
1408
  if (value == NULL)
 
1409
  {
 
1410
    return true;
 
1411
  }
 
1412
 
 
1413
  cols.push_back(name);
 
1414
  cols.push_back(value);
 
1415
 
 
1416
  return false;
 
1417
}
 
1418
 
1387
1419
bool createTabConstraintsColumns(vector<const ColumnInfo *>& cols)
1388
1420
{
1389
1421
  const ColumnInfo *cat= new(std::nothrow) ColumnInfo("CONSTRAINT_CATALOG",