From 1b709be15621e75b56dfa383d61bc437b9b03ffe Mon Sep 17 00:00:00 2001 From: Brian McBee Date: Wed, 8 Aug 2007 05:04:22 +0000 Subject: Whoops! left this out. second part of r1541 --- OpenSim/Framework/Data.MySQL/MySQLManager.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'OpenSim/Framework/Data.MySQL/MySQLManager.cs') diff --git a/OpenSim/Framework/Data.MySQL/MySQLManager.cs b/OpenSim/Framework/Data.MySQL/MySQLManager.cs index 3624c7d..a2c6750 100644 --- a/OpenSim/Framework/Data.MySQL/MySQLManager.cs +++ b/OpenSim/Framework/Data.MySQL/MySQLManager.cs @@ -673,10 +673,11 @@ namespace OpenSim.Framework.Data.MySQL IDbCommand result = Query(sql, parameters); //Console.WriteLine(result.CommandText); - - if (result.ExecuteNonQuery() == 1) + int x; + if ((x = result.ExecuteNonQuery()) > 0) + { returnval = true; - + } result.Dispose(); } catch (Exception e) -- cgit v1.1