add read()

master
Christopher 2020-07-09 00:32:17 +02:00
parent e3bcea79c7
commit cdb4071483
1 changed files with 4 additions and 0 deletions

View File

@ -58,6 +58,8 @@ namespace OpenSim.Modules.DataValue.Storage
using (IDataReader _mysqlReader = _mysqlCommand.ExecuteReader()) using (IDataReader _mysqlReader = _mysqlCommand.ExecuteReader())
{ {
_mysqlReader.Read();
if (_mysqlReader["StorageKey"] != null) if (_mysqlReader["StorageKey"] != null)
return true; return true;
@ -76,6 +78,8 @@ namespace OpenSim.Modules.DataValue.Storage
using (IDataReader _mysqlReader = _mysqlCommand.ExecuteReader()) using (IDataReader _mysqlReader = _mysqlCommand.ExecuteReader())
{ {
_mysqlReader.Read();
if (_mysqlReader["StorageData"] != null) if (_mysqlReader["StorageData"] != null)
return _mysqlReader["StorageData"].ToString(); return _mysqlReader["StorageData"].ToString();