9 messages in com.mysql.lists.plusplusRe: Minor problem with the resetdb
FromSent OnAttachments
Earl Miles10 Mar 2005 17:39.fix
Warren Young10 Mar 2005 20:45 
Earl Miles10 Mar 2005 20:49 
Warren Young10 Mar 2005 21:03 
Warren Young10 Mar 2005 23:01 
Earl Miles11 Mar 2005 07:43 
Warren Young11 Mar 2005 15:24 
Earl Miles11 Mar 2005 16:36 
Warren Young11 Mar 2005 19:49 
Subject:Re: Minor problem with the resetdb
From:Warren Young (mysq@etr-usa.com)
Date:03/11/2005 03:24:04 PM
List:com.mysql.lists.plusplus

Earl Miles wrote:

Hmm. In the instance I was toying with, the db already existed from a previous run, and I was using the default user, who didn't have permission with the database, so that's exactly what was happening in my runs of resetdb.

I think you need to debug that more closely. If the first select_db() fails, it will try to create_db, which _doesn't throw exceptions_ when it fails. It just returns true (!) so the program ends.

For your patch to have any value, you'd have to create the database (again? how?) and then fail to select the database you just created.