List:MySQL++« Previous MessageNext Message »
From:Alessandro Bardelli Date:December 10 2013 11:58am
Subject:minor error in resetdb
View as plain text  
i have just downloaded and compiled mysql++ on windows/mingw. I have
noticed that resetdb always outputs: connecting to '1'@'1' with password.
it is produced by the following code:
   cout << "Connecting to '" <<
     (cmdline.user() || "USERNAME") << "'@'" <<
     (cmdline.server() || "localhost") << "', with" <<
     (cmdline.pass() && cmdline.pass()[0] ? "" : "out") <<
     " password..." << endl;

i think this behaviour is unwanted...i would change into:
   cout << "Connecting to '" <<
     ((cmdline.user() && strlen(cmdline.user())>0) ? cmdline.user() :
"USERNAME") << "'@'" <<
     ((cmdline.server() && strlen(cmdline.server())>0) ? cmdline.server() :
"localhost") << "', with" <<
     ((cmdline.pass() && strlen(cmdline.pass())>0) ? "" : "out") <<
     " password..." << endl;


i have also noticed that the stock.txt needed for ssql6 is missing.


thanks

Alessandro Pietro Bardelli

Thread
minor error in resetdbAlessandro Bardelli10 Dec
  • Re: minor error in resetdbWarren Young10 Dec
    • Re: minor error in resetdbAlessandro Bardelli10 Dec
      • Re: minor error in resetdbWarren Young11 Dec
        • Re: minor error in resetdbAlessandro Bardelli11 Dec
          • Re: minor error in resetdbWarren Young12 Dec