check for data
parent
cdb4071483
commit
d74469f84e
|
@ -58,7 +58,8 @@ namespace OpenSim.Modules.DataValue.Storage
|
|||
|
||||
using (IDataReader _mysqlReader = _mysqlCommand.ExecuteReader())
|
||||
{
|
||||
_mysqlReader.Read();
|
||||
if (!_mysqlReader.Read())
|
||||
return false;
|
||||
|
||||
if (_mysqlReader["StorageKey"] != null)
|
||||
return true;
|
||||
|
@ -78,7 +79,8 @@ namespace OpenSim.Modules.DataValue.Storage
|
|||
|
||||
using (IDataReader _mysqlReader = _mysqlCommand.ExecuteReader())
|
||||
{
|
||||
_mysqlReader.Read();
|
||||
if (!_mysqlReader.Read())
|
||||
return null;
|
||||
|
||||
if (_mysqlReader["StorageData"] != null)
|
||||
return _mysqlReader["StorageData"].ToString();
|
||||
|
|
Loading…
Reference in New Issue