<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 1, 2014 at 9:22 AM, Bill Meek <span dir="ltr"><<a href="mailto:keemllib@gmail.com" target="_blank">keemllib@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class="">On 11/01/2014 10:41 AM, Mike Rice wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
I figure I am not preparing the data correctly. It is here:<br>
<a href="http://pastebin.com/wx2eifB7" target="_blank">http://pastebin.com/wx2eifB7</a> if anyone wants to take a look and offer<br>
corrections.<br>
<br>
</blockquote>
<br></span>
And I speak even less Perl. The problem is that the keys in<br>
the answer to the 1st query don't match those required by<br>
the next POST, ChanId vs. ChannelID. Adjusting for that,<br>
it works. Argggggggggggg.<div class=""><div class="h5"></div></div></blockquote></div><br></div><div class="gmail_extra">I believe I have it generally working by using urlencoded data and remapping the keys since as Bill mentioned they are different. To me this seems pretty dangerous. Much more dangerous than using mysql to set a single column.</div><div class="gmail_extra"><br></div><div class="gmail_extra">As far as I can tell you need to supply each parameter to the function:</div><div class="gmail_extra"><div><br></div><div><div>bool Channel::UpdateDBChannel( uint MplexID,</div><div> uint SourceID,</div><div> uint ChannelID,</div><div> const QString &CallSign,</div><div> const QString &ChannelName,</div><div> const QString &ChannelNumber,</div><div> uint ServiceID,</div><div> uint ATSCMajorChannel,</div><div> uint ATSCMinorChannel,</div><div> bool UseEIT,</div><div> bool visible,</div><div> const QString &FrequencyID,</div><div> const QString &Icon,</div><div> const QString &Format,</div><div> const QString &XMLTVID,</div><div> const QString &DefaultAuthority )</div></div><div><br></div><div>If you don't supply the parameter it ends up zero and your table is updated with a zero value for that column. If I am careful I can get this right now but if someone adds a parameter here and does not add it with the same name in the GET function (or if my script doesn't use those keys) it will be zero when I call the function. </div><div><br></div><div>I guess my script would need to abort if the ProtoVer changes then go in and look at the source to see if I am okay. </div><div><br></div><div>Is it a bug that the keys do not match between GetChannelInfoList and UpdateDBChannel? Or am I going about this incorrectly?</div><div><br></div></div></div>