List:MySQL++« Previous MessageNext Message »
From:Lance Additon Date:May 21 2005 5:01am
Subject:Getting Locking errors with simple query call ???
View as plain text  
Hello everyone, I'm just trying to grab one column of information and I
keep getting the exception thrown by this snippet of code in
coonection.cpp

if (lock()) {
		if (throw_excptns) {
			throw BadQuery("lock failed");
		}
		else {
			return Result();
		}
	}

Here's what I do to get the error...

void GetEntryNumber(Connection* con){

	Query entry_query = con->query();
	entry_query << "select Entry_Number from db_environment";
	Result EntryNumRow = entry_query.store(); <---THIS IS WHERE IT
ERRORS
	Row Entry = EntryNumRow.fetch_row();


	return;

}

My OS = Win XP Pro and im using the new SQL server 5.0.4-beta-max

Thanks!!

Lance


Thread
Getting Locking errors with simple query call ???Lance Additon21 May
  • Re: Getting Locking errors with simple query call ???Chris Frey21 May
  • Re: Getting Locking errors with simple query call ???Warren Young23 May