mirror of
https://github.com/opensim/opensim.git
synced 2026-06-06 02:55:47 +08:00
Fix up other sqlite db interactions to use non-hyphenated uuid
Inventory contents retrieval and persistent region storage standalone now appear to work as well as they did before :) This patch will not fix grid problems. May be bugs present due to conversions I didn't spot. I personally probably don't have any more time for this today. I'm also not entirely convinced this is the right way forward so this might be a handy pause for thought. I'll also be delighted if I wake up tommorrow and everything is fine again.
This commit is contained in:
@@ -77,11 +77,11 @@ namespace OpenSim.Framework.Data.SQLite
|
||||
{
|
||||
lock (ds)
|
||||
{
|
||||
DataRow row = ds.Tables["users"].Rows.Find(uuid);
|
||||
DataRow row = ds.Tables["users"].Rows.Find(Util.ToRawUuidString(uuid));
|
||||
if (row != null)
|
||||
{
|
||||
UserProfileData user = buildUserProfile(row);
|
||||
row = ds.Tables["useragents"].Rows.Find(uuid);
|
||||
row = ds.Tables["useragents"].Rows.Find(Util.ToRawUuidString(uuid));
|
||||
if (row != null)
|
||||
{
|
||||
user.currentAgent = buildUserAgent(row);
|
||||
@@ -105,7 +105,7 @@ namespace OpenSim.Framework.Data.SQLite
|
||||
if (rows.Length > 0)
|
||||
{
|
||||
UserProfileData user = buildUserProfile(rows[0]);
|
||||
DataRow row = ds.Tables["useragents"].Rows.Find(user.UUID);
|
||||
DataRow row = ds.Tables["useragents"].Rows.Find(Util.ToRawUuidString(user.UUID));
|
||||
if (row != null)
|
||||
{
|
||||
user.currentAgent = buildUserAgent(row);
|
||||
@@ -220,7 +220,7 @@ namespace OpenSim.Framework.Data.SQLite
|
||||
DataTable users = ds.Tables["users"];
|
||||
lock (ds)
|
||||
{
|
||||
DataRow row = users.Rows.Find(user.UUID);
|
||||
DataRow row = users.Rows.Find(Util.ToRawUuidString(user.UUID));
|
||||
if (row == null)
|
||||
{
|
||||
row = users.NewRow();
|
||||
@@ -238,7 +238,7 @@ namespace OpenSim.Framework.Data.SQLite
|
||||
if (user.currentAgent != null)
|
||||
{
|
||||
DataTable ua = ds.Tables["useragents"];
|
||||
row = ua.Rows.Find(user.UUID);
|
||||
row = ua.Rows.Find(Util.ToRawUuidString(user.UUID));
|
||||
if (row == null)
|
||||
{
|
||||
row = ua.NewRow();
|
||||
@@ -255,7 +255,7 @@ namespace OpenSim.Framework.Data.SQLite
|
||||
// I just added this to help the standalone login situation.
|
||||
//It still needs to be looked at by a Database guy
|
||||
DataTable ua = ds.Tables["useragents"];
|
||||
row = ua.Rows.Find(user.UUID);
|
||||
row = ua.Rows.Find(Util.ToRawUuidString(user.UUID));
|
||||
|
||||
if (row == null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user