Changeset 15444


Ignore:
Timestamp:
04/26/13 10:09:17 (12 years ago)
Author:
tbretz
Message:
Allow to use Print as PrintQuery
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/msql/MSQLServer.cc

    r15440 r15444  
    3232//
    3333//  Use it like TSQlServer:
    34 //    new MSQLServer("mysql://localhost:3306", "hercules", "stdmagicpassword");
     34//    new MSQLServer("mysql://localhost:3306?compress", "hercules", "stdmagicpassword");
    3535//    // now start your TBrowser
    3636//    new TBrowser;
     
    350350void MSQLServer::Print(Option_t *o) const /*FOLD00*/
    351351{
     352    const TString opt(o);
     353    if (!opt.IsNull())
     354    {
     355        PrintQuery(o);
     356        return;
     357    }
     358
    352359    switch (fType)
    353360    {
     
    378385    {
    379386    case kIsTable:
    380         PrintQuery(Form("SHOW FULl COLUMNS FROM %s.%s", (const char*)fDataBase, (const char*)fTable));
     387        PrintQuery(Form("SHOW FULL COLUMNS FROM %s.%s", (const char*)fDataBase, (const char*)fTable));
    381388        break;
    382389
    383390    case kIsColumn:
    384         PrintQuery(Form("SHOW FULl COLUMNS FROM %s.%s LIKE %s", (const char*)fDataBase, (const char*)fTable, (const char*)fColumn));
     391        PrintQuery(Form("SHOW FULL COLUMNS FROM %s.%s LIKE %s", (const char*)fDataBase, (const char*)fTable, (const char*)fColumn));
    385392        break;
    386393
Note: See TracChangeset for help on using the changeset viewer.