dbTalk Databases Forums  

reformat/sreformat broken

comp.databases.pick comp.databases.pick


Discuss reformat/sreformat broken in the comp.databases.pick forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dzigray
 
Posts: n/a

Default reformat/sreformat broken - 12-15-2006 , 01:36 AM






darn...just tried reformat/sreformat with the "o"-option... but it is
broke on 7.5.0.NT

this is supposed to overlay any duplicate item's attribute's value with
the current value rather than APPENDING it as an additional value.

assuming you start with an empty target-file, this should leave a
maximum of only one value per attribute in the final target-file.

well, you do get only *one* value... but it is the same identical value
for ALL ITEMS in the file!

eg. given the following data sets:

source_file:
id1^smith^john
id2^smith^mary
id3^jones^fred

target_file:
<initially empty>
--------------------
running the following:
Quote:
sreformat source_file a1 a2 (oi
to: target_file

incorrectly results in:

target_file:
smith^john
jones^john

------------------------------------------------
instead of correctly resulting in:

target_file:
smith^mary
jones^fred


note: without the "o"-option, it correctly returns:
target_file:
smith^john]mary
jones^fred



Reply With Quote
  #2  
Old   
dzigray
 
Posts: n/a

Default Re: reformat/sreformat broken -- really default-"MACRO" bug - 12-15-2006 , 01:57 AM






oops... was fooled into thinking the bug was on the reformat/sreformat
-- by instead a different bug! (easier to deal with!)

i had placed "a1" on the macro-attribute of the dictionary for the
"target_file".

sort/list of target_file... causes all items to appear as if they all
have the same duplicate "a1" as the first item's attribute1.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.