mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 17:32:42 +08:00
== string.Empty is .Lenght == 0
This commit is contained in:
@@ -148,7 +148,7 @@ namespace OpenSim.Data.PGSQL
|
||||
|
||||
internal NpgsqlDbType DbtypeFromString(Type type, string PGFieldType)
|
||||
{
|
||||
if (PGFieldType == "")
|
||||
if (PGFieldType.Length == 0)
|
||||
{
|
||||
return DbtypeFromType(type);
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ namespace OpenSim.Data.SQLite
|
||||
if (Util.IsWindows())
|
||||
Util.LoadArchSpecificWindowsDll("sqlite3.dll");
|
||||
|
||||
if (dbconnect == string.Empty)
|
||||
if (dbconnect.Length == 0)
|
||||
{
|
||||
dbconnect = "URI=file:Asset.db,version=3";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user