List:MySQL++« Previous MessageNext Message »
From:Bart Verstraete Date:January 8 2008 8:40pm
Subject:Re: mysql++ 3.0 beta2 Connecting troubles
View as plain text  

Warren Young schreef:
> Bart Verstraete wrote:
>>
>> Helllllllllp
>
> Apply this patch to the current svn version:
>
Doesn't patch get this:
bart@bart-desktop:~/mysqlpp$ patch -p0 < connectionpatch
patching file lib/dbdriver.cpp
Hunk #2 FAILED at 85.
1 out of 2 hunks FAILED -- saving rejects to file lib/dbdriver.cpp.rej

Contents of dbdriver.cpp.rej:

  GNU nano 
2.0.6                                                             
Bestand: 
lib/dbdriver.cpp.rej                                                                      
                                                            


***************
*** 84,89 ****
         set_option_default(new ReadDefaultFileOption("my"));

         // Establish the connection
         return is_connected_ =
                         mysql_real_connect(&mysql_, host, user, 
password, db,
                         port, socket_name, mysql_.client_flag);
--- 85,99 ----
         set_option_default(new ReadDefaultFileOption("my"));

         // Establish the connection
+ std::cout << "DBG: host = '" << host << "'" << std::endl;
+ std::cout << "DBG: user = '" << user << "'" << std::endl;
+ std::cout << "DBG: password = '" << password << "'" <<
std::endl;
+ std::cout << "DBG: db = '" << (db ? db : "(NULL)") << "'" <<
std::endl;
+ std::cout << "DBG: port = '" << port << "'" << std::endl;
+ std::cout << "DBG: socket_name = '" <<
+ (socket_name ? socket_name : "(NULL)") << "'" << std::endl;
+ std::cout << "DBG: client_flag = '" << mysql_.client_flag << "'"
<<
+ std::endl;
         return is_connected_ =
                         mysql_real_connect(&mysql_, host, user, 
password, db,
                         port, socket_name, mysql_.client_flag);

Grts Bart
Thread
mysql++ 3.0 beta2 Connecting troublesBart Verstraete6 Jan
  • Re: mysql++ 3.0 beta2 Connecting troublesJonathan Wakely6 Jan
    • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete7 Jan
      • Re: mysql++ 3.0 beta2 Connecting troublesJim7 Jan
        • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete8 Jan
          • Re: mysql++ 3.0 beta2 Connecting troublesJim9 Jan
            • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
              • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
                • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
                  • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young11 Jan
  • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young7 Jan
    • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete8 Jan
      • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young8 Jan
        • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete8 Jan
          • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young8 Jan
            • Re: mysql++ 3.0 beta2 Connecting troublesBart Verstraete10 Jan
              • Re: mysql++ 3.0 beta2 Connecting troublesWarren Young11 Jan