Automated update from Qt3

pull/1/head
Timothy Pearson 9 years ago
parent 3add7b436c
commit b99016b854

@ -495,6 +495,7 @@ bool TQMYSQLDriver::open( const TQString& db,
return FALSE;
}
my_bool reconnect = 0;
for ( it = opts.begin(); it != opts.end(); ++it ) {
TQString opt( (*it).upper() );
if ( opt == "CLIENT_COMPRESS" )
@ -512,11 +513,13 @@ bool TQMYSQLDriver::open( const TQString& db,
else if ( opt == "CLIENT_SSL" )
clientOptionFlags |= CLIENT_SSL;
else if ( opt == "MYSQL_OPT_RECONNECT" )
mysql_options(d->mysql, MYSQL_OPT_RECONNECT, NULL);
else
reconnect = 1;
else
tqWarning( "TQMYSQLDriver::open: Unknown connect option '%s'", (*it).latin1() );
}
mysql_options(d->mysql, MYSQL_OPT_RECONNECT, &reconnect);
if ( mysql_real_connect( d->mysql,
host,
user,

Loading…
Cancel
Save