aboutsummaryrefslogtreecommitdiff
path: root/src/wixext/SqlCompiler.cs
diff options
context:
space:
mode:
authorSean Hall <r.sean.hall@gmail.com>2019-01-02 22:33:22 -0600
committerSean Hall <r.sean.hall@gmail.com>2019-01-02 22:33:22 -0600
commit2dcc519054be041ef5aa6cfac9dac13b0ea04eca (patch)
treeba530ef5d4add27c9727d96d46809d6f1c426b3f /src/wixext/SqlCompiler.cs
parent6a497dc3559b8a5283405a1e1456af6a4c0bbdde (diff)
downloadwix-2dcc519054be041ef5aa6cfac9dac13b0ea04eca.tar.gz
wix-2dcc519054be041ef5aa6cfac9dac13b0ea04eca.tar.bz2
wix-2dcc519054be041ef5aa6cfac9dac13b0ea04eca.zip
Add tuple definitions and fix test.
Diffstat (limited to 'src/wixext/SqlCompiler.cs')
-rw-r--r--src/wixext/SqlCompiler.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wixext/SqlCompiler.cs b/src/wixext/SqlCompiler.cs
index c789f3bd..3fb33993 100644
--- a/src/wixext/SqlCompiler.cs
+++ b/src/wixext/SqlCompiler.cs
@@ -265,7 +265,7 @@ namespace WixToolset.Sql
265 this.Messaging.Write(SqlErrors.IllegalElementWithoutComponent(childSourceLineNumbers, child.Name.LocalName)); 265 this.Messaging.Write(SqlErrors.IllegalElementWithoutComponent(childSourceLineNumbers, child.Name.LocalName));
266 } 266 }
267 267
268 this.ParseSqlScriptElement(intermediate, section, child, componentId, id.Id); 268 this.ParseSqlScriptElement(intermediate, section, child, componentId, id?.Id);
269 break; 269 break;
270 case "SqlString": 270 case "SqlString":
271 if (null == componentId) 271 if (null == componentId)
@@ -273,7 +273,7 @@ namespace WixToolset.Sql
273 this.Messaging.Write(SqlErrors.IllegalElementWithoutComponent(childSourceLineNumbers, child.Name.LocalName)); 273 this.Messaging.Write(SqlErrors.IllegalElementWithoutComponent(childSourceLineNumbers, child.Name.LocalName));
274 } 274 }
275 275
276 this.ParseSqlStringElement(intermediate, section, child, componentId, id.Id); 276 this.ParseSqlStringElement(intermediate, section, child, componentId, id?.Id);
277 break; 277 break;
278 case "SqlFileSpec": 278 case "SqlFileSpec":
279 if (null == componentId) 279 if (null == componentId)
@@ -325,8 +325,8 @@ namespace WixToolset.Sql
325 row.Set(3, database); 325 row.Set(3, database);
326 row.Set(4, componentId); 326 row.Set(4, componentId);
327 row.Set(5, user); 327 row.Set(5, user);
328 row.Set(6, fileSpec.Id); 328 row.Set(6, fileSpec?.Id);
329 row.Set(7, logFileSpec.Id); 329 row.Set(7, logFileSpec?.Id);
330 if (0 != attributes) 330 if (0 != attributes)
331 { 331 {
332 row.Set(8, attributes); 332 row.Set(8, attributes);