mirror of
https://github.com/opensim/opensim.git
synced 2026-05-14 18:55:39 +08:00
MySQLConnector is not a MS product
This commit is contained in:
@@ -160,8 +160,9 @@ namespace OpenSim.Data.MySQL
|
||||
using (MySqlConnection dbcon = new MySqlConnection(m_connectionString))
|
||||
{
|
||||
dbcon.Open();
|
||||
|
||||
return DoQueryWithConnection(cmd, dbcon);
|
||||
T[] ret = DoQueryWithConnection(cmd, dbcon);
|
||||
dbcon.Close();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
else
|
||||
@@ -243,7 +244,7 @@ namespace OpenSim.Data.MySQL
|
||||
result.Add(row);
|
||||
}
|
||||
}
|
||||
|
||||
cmd.Connection = null;
|
||||
return result.ToArray();
|
||||
}
|
||||
|
||||
@@ -402,7 +403,10 @@ namespace OpenSim.Data.MySQL
|
||||
dbcon.Open();
|
||||
cmd.Connection = dbcon;
|
||||
|
||||
return cmd.ExecuteScalar();
|
||||
Object ret = cmd.ExecuteScalar();
|
||||
cmd.Connection = null;
|
||||
dbcon.Close();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user