Work items: 29848

This commit is contained in:
hartvig
2011-01-11 10:24:39 -01:00
parent 5c70ba1eb8
commit dc1be04202

View File

@@ -198,7 +198,7 @@ namespace umbraco.DataLayer.Utility.Installer
if (!String.IsNullOrEmpty(v.Table) && !String.IsNullOrEmpty(v.Field) && !String.IsNullOrEmpty(v.Value))
{
IRecordsReader reader = SqlHelper.ExecuteReader(string.Format("SELECT {0} FROM {1} WHERE {0}={2}", v.Field, v.Table, v.Value));
if (!reader.HasRecords)
if (!reader.Read())
continue;
}
else if (String.IsNullOrEmpty(v.Table))