aboutsummaryrefslogtreecommitdiff
path: root/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs
diff options
context:
space:
mode:
authorRob Mensching <rob@firegiant.com>2017-12-27 14:23:39 -0800
committerRob Mensching <rob@firegiant.com>2017-12-27 14:23:39 -0800
commit68075faa4a60e8016ea7653cfc1396cd00e3f646 (patch)
tree4656616a3f1030620594ee38a280e4dab8ab9e8e /src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs
parent9813f0b4054ab0c003529699d1a467db90395980 (diff)
downloadwix-68075faa4a60e8016ea7653cfc1396cd00e3f646.tar.gz
wix-68075faa4a60e8016ea7653cfc1396cd00e3f646.tar.bz2
wix-68075faa4a60e8016ea7653cfc1396cd00e3f646.zip
Integrate latest Data and Extensibility changes and build light.exe
Diffstat (limited to 'src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs')
-rw-r--r--src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs
index 5d24d08a..f4e05489 100644
--- a/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs
+++ b/src/WixToolset.Core.WindowsInstaller/Unbind/UnbindDatabaseCommand.cs
@@ -127,7 +127,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
127 127
128 using (View tableView = this.Database.OpenExecuteView(String.Format(CultureInfo.InvariantCulture, "SELECT * FROM `{0}`", tableName))) 128 using (View tableView = this.Database.OpenExecuteView(String.Format(CultureInfo.InvariantCulture, "SELECT * FROM `{0}`", tableName)))
129 { 129 {
130 List<ColumnDefinition> columns; 130 ColumnDefinition[] columns;
131 using (Record columnNameRecord = tableView.GetColumnInfo(MsiInterop.MSICOLINFONAMES), 131 using (Record columnNameRecord = tableView.GetColumnInfo(MsiInterop.MSICOLINFONAMES),
132 columnTypeRecord = tableView.GetColumnInfo(MsiInterop.MSICOLINFOTYPES)) 132 columnTypeRecord = tableView.GetColumnInfo(MsiInterop.MSICOLINFOTYPES))
133 { 133 {
@@ -144,7 +144,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
144 } 144 }
145 145
146 int columnCount = columnNameRecord.GetFieldCount(); 146 int columnCount = columnNameRecord.GetFieldCount();
147 columns = new List<ColumnDefinition>(columnCount); 147 columns = new ColumnDefinition[columnCount];
148 for (int i = 1; i <= columnCount; i++) 148 for (int i = 1; i <= columnCount; i++)
149 { 149 {
150 string columnName = columnNameRecord.GetString(i); 150 string columnName = columnNameRecord.GetString(i);
@@ -260,7 +260,7 @@ namespace WixToolset.Core.WindowsInstaller.Unbind
260 columnModularizeType = ColumnModularizeType.Column; 260 columnModularizeType = ColumnModularizeType.Column;
261 } 261 }
262 262
263 columns.Add(new ColumnDefinition(columnName, columnType, length, primary, nullable, columnCategory, minValue, maxValue, keyTable, keyColumn, set, description, columnModularizeType, (ColumnType.Localized == columnType), true)); 263 columns[i - 1] = new ColumnDefinition(columnName, columnType, length, primary, nullable, columnCategory, minValue, maxValue, keyTable, keyColumn, set, description, columnModularizeType, (ColumnType.Localized == columnType), true);
264 } 264 }
265 } 265 }
266 266