Changeset 2084

Show
Ignore:
Timestamp:
03/22/11 15:13:27 (2 years ago)
Author:
ahu
Message:

after many years ;-) merge the fix so MySQL stored procedures can be called. Closes ticket 231. Please test ;-)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/pdns/modules/gmysqlbackend/smysql.cc

    r1976 r2084  
    2525                          database.c_str(), port, 
    2626                          msocket.empty() ? 0 : msocket.c_str(), 
    27                           0)) { 
     27                          CLIENT_MULTI_RESULTS)) { 
    2828 
    2929    throw sPerrorException("Unable to connect to database"); 
     
    9696  } 
    9797  mysql_free_result(d_rres);   
     98 
     99  while (mysql_next_result(&d_db) == 0) { 
     100    if ((d_rres = mysql_use_result(&d_db))) { 
     101      mysql_free_result(d_rres); 
     102    } 
     103  } 
     104 
    98105  d_rres=0; 
    99106  return false;