Saxonite v1.2.10.1

Db schema comparison when source database has no tables.
This commit is contained in:
Andy Howard
2022-12-12 14:21:45 +00:00
parent 52fc9daf07
commit 6b2aebcc73
@@ -129,7 +129,7 @@ namespace Sarand.Net.Standard.Dbas.Proc
{ {
String sourceTableName = (sourceTableIdx < sourceTables.Count ? sourceTables[sourceTableIdx] : ""); String sourceTableName = (sourceTableIdx < sourceTables.Count ? sourceTables[sourceTableIdx] : "");
String targetTableName = (targetTableIdx < targetTables.Count ? targetTables[targetTableIdx] : ""); String targetTableName = (targetTableIdx < targetTables.Count ? targetTables[targetTableIdx] : "");
if (StringUtil.IsEmpty(targetTableName) || targetTableName.CompareTo(sourceTableName) > 0) if (!StringUtil.IsEmpty(sourceTableName) && (StringUtil.IsEmpty(targetTableName) || targetTableName.CompareTo(sourceTableName) > 0))
{ {
// Target table missing. // Target table missing.
AddSchemaComparisonItem(sourceTableName, "", 0, "", "Table is missing"); AddSchemaComparisonItem(sourceTableName, "", 0, "", "Table is missing");