[rtg] Bug in targetmaker [WAS: RTG 9]

Brandon Ewing nicotine at warningg.com
Fri Mar 21 17:34:24 EDT 2008


On Sun, Mar 02, 2008 at 07:19:45AM -0600, Brian T. O'Neill wrote:
> Let me know what issue's you're seeing please, I'll get them taken care
> of ASAP.
> 
> Brian

There appears to be a bug in the CVS version of targetmaker, but I'm no perl
guru, so I'm having trouble figuring out how to fix it.

Every time I run targetmaker, it always inserts additional rows into 
options_table.  From looking at the code, it appears that it is trying to
check to see if a row exists, inserting it if it doesn't, and only updating
if necessary.

Unfortunately, something appears to be going horribly wrong.

Wouldn't it make more sense to replace the whole check, INSERT/UPDATE thing
with just a REPLACE statement, since it appears there's already a key 
composed of the 3 columns?

-- 
Brandon Ewing                                        (nicotine at warningg.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.grdata.com/pipermail/rtg/attachments/20080321/7c10e8fb/attachment.bin 


More information about the RTG mailing list