I thought it might be something like that... so if there were 2 '?' in the
query, it would use the first 2 columns in the hRec argument?

 

From: Bob Arnson [mailto:[EMAIL PROTECTED] 
Sent: Monday, 2 July 2007 5:43 p.m.
To: Adam Langley
Cc: [email protected]
Subject: Re: [WiX-devs] using WcaExecuteView to join tables

 

Adam Langley wrote: 

(sorry for sending these emails directly to your address all the time, I
just click 'reply', as Im used to mailing lists having the posting address
as the reply address (on behalf of...))


It's one of those things guaranteed to annoy 50% of the population.<g>




line 30 has:

LPCWSTR vcsSqlBinaryScriptQuery = L"SELECT `Data` FROM `Binary` WHERE
`Name`=?";

 

Then line 233 appears to open the Binary table view and retrieve a row,
using a row from the SQLScript table to populate the `Name` of the binary...

I cant see anywhere that the '?' is replaced with a the name of the
SQLScript Binary entry, so Im assuming this is happening automatically...


The WcaExecuteView call passes in the same hRec that it just fetched from
the SqlScript table. The first field in vcsSqlScriptQuery is ScriptBinary_.
There's only one ? parameter in vcsSqlBinaryScriptQuery so that's the field
value used in vcsSqlScriptQuery.

No magic, just a lack of comments.<g>




-- 
sig://boB
http://joyofsetup.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to