Bug in cursor behaviour with duplicates

Dear Oracle guys and girls,
first of all: it sucks that i HAVE to provide business information (company name, address, even phone number) even if i just want to participate in this forum for private reasons. I even have to "unsubscribe" to the newsletters although i never subscribed. Then i have to re-enter my timezone information and email address for the forum, because the settings in my profile are ignored. I think there's some room for improvement in this registration process.
OK - back to topic. i think i found a bug in the cursor behaviour with duplicate keys. But the behaviour is very consistent, so maybe it's not a bug, but a bad design. (I call it bad because it's totally unexpected and not logical to me).
I insert some dupes with DB_KEYFIRST; then i create a cursor and iterate over all items in the reverse order (!) with DB_PREV (i also tried DB_PREV|DB_NEXT_DUPE) - no keys are shown.
Alternatively:
I insert some dupes with DB_KEYLAST; then i create a cursor and iterate over all items in the reverse order (!) with DB_NEXT (i also tried DB_NEXT|DB_NEXT_DUPE) - no keys are shown.
cursor->c_get returns the error code -30989 (DB_NOTFOUND).
Why is it not possible to traverse duplicates in the reverse order? To me it looks like a bug.
I tested against db 4.5.20.
Regards
Chris
PS: I would love to hear if the bug i reported here: http://groups.google.com/group/comp.databases.berkeley-db/browse_thread/thread/ed471cf6837cb2a6/dd9cda0ad105f401#dd9cda0ad105f401
will be fixed in the next version.
Here's a test program:
int
main(int argc, char **argv)
unsigned i;
int st;
DB *db;
DBT key, record;
DBC cursor, cursor2;
unlink("test.bdb");
st=db_create(&db, 0, 0);
if (st)
error("db_create", st);
st=db->set_flags(db, DB_DUP);
if (st)
error("db->set_flags", st);
st=db->open(db, 0, "test.bdb", 0, DB_BTREE, DB_CREATE, 0);
if (st)
error("db->open", st);
memset(&key, 0, sizeof(key));
memset(&record, 0, sizeof(record));
st=db->cursor(db, 0, &cursor, 0);
if (st)
error("db->cursor", st);
st=db->cursor(db, 0, &cursor2, 0);
if (st)
error("db->cursor", st);
for (i=0; i<LOOPS; i++) {
record.data=&i;
record.size=sizeof(i);
st=cursor->c_put(cursor, &key, &record, DB_KEYFIRST);
st=cursor->c_put(cursor, &key, &record, DB_KEYLAST);
if (st)
error("cursor->c_put", st);
while (!(st=cursor2->c_get(cursor, &key, &record, DB_NEXT))) {
printf("%d\n", *(int *)record.data);
st=cursor->c_close(cursor);
if (st)
error("cursor->c_close", st);
st=db->close(db, 0);
if (st)
error("db->close", st);
return (0);
}

st=cursor->c_put(cursor, &key, &record, DB_KEYFIRST);
st=cursor->c_put(cursor, &key, &record, DB_KEYLAST);
if (st)
error("cursor->c_put", st);
please delete the first line, it was a cut and paste error. as i said earlier: insert with KEYLAST, query with NEXT.

Similar Messages

  • Bug: No Cursor Focus with Instant Preview Message Replies

    When you receive an Instant Preview Message and click on this notification (not shortcut reply but click on the notification itself for bbm or text messages) this brings you into the Hub to reply to that message. 
    The cursor focus is now in the reply field blinking however the typing focus is not here. You must explicitly click in the reply field to re-set the cursor focus. Now you can type to reply.
    Is this a known bug? Is there a fix?
    Blackberry Q10
    OS Version: 10.2.0.1803

    cor-el, Thank you for the quick response. However, I am not a techie by any stretch and am totally disabled. Your answer basically made no sense to me, sorry. I also have something called Session Manager, in this case irrelevant as my FF page never stayed up long enough for me to do anything even to click on Restore.
    I have in the meantime, simply reverted back to an installation of 3.6.8 and everything is working fine right now. I hope others will find benefit from your response as it is way too deep for me to venture.
    Thank you again for your response.

  • FF 4 (mac) doesn't display handcursor in all Flash websites. Also all html websites show strange behaviour with cursor. (blinking cursor in nearby div after clicking a button)

    I'm running Mac OS 10.6
    FF4 doesn't display the hand cursor or type cursor in '''all''' flash websites on links/textfieldss when it should. Highly annoying and disgracing all flashcontent.
    Also with html websites I experienced strange cursor behaviour with FF4. Although it's hard to reproduce the problem. It's very inconsistent.
    I have the feeling in general FF4 should look into it's cursor behaviour on all possible platforms. Mainly Flash.

    I replicated the typing cursor problem on the popular FB. Just click e.g. "x people like this", you'll see you get a blinking type cursor in the "close" button.

  • [svn:fx-trunk] 6993: * Fixed a duplicate Bindable metadata bug that showed up with

    Revision: 6993
    Author:   [email protected]
    Date:     2009-05-16 23:57:42 -0700 (Sat, 16 May 2009)
    Log Message:
    Fixed a duplicate Bindable metadata bug that showed up with
      describeType().
    tests Passed: checkintests
    Needs QA: YES, just confirm the bug fix, please.
    Needs DOC: NO
    Bug fixes: SDK-21133
    API Change: NO
    Reviewer: Pete F.
    Code-level description of changes:
      BindableSecondPassEvaluator.java
        Modified moveMetaDataToNewDefinition() to no longer insert the new
        Bindable metadata into the definition's statement list, because
        prepMetaDataNode() already handles this.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-21133
    Modified Paths:
        flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/as3/binding/BindableSecondPassEva luator.java

    I just noticed that for some reason the project is using an old path to my SVN repository. I recreated it and reimported the project but for some reason Xcode didn't realize that. I'm betting there's some little file somewhere that's causing my problem.

  • Cursor behaviour when quick key zooming

    Is there a way to change the cursor behaviour when using a quick key (cmd-space) zoom?
    When laying out complex forms i often need to quickly zoom in to accurately position (say) a checkbox i've just place on the page, but if i cmd-space zoom i have to then click the arrow tool before i can continue positioning the element in question.
    Not a big problem with one element but if i need to zoom in tight to reposition a number of elements i've selected, the need to click the arrow tool after the zoom causes that selection to deselect. Which means zooming in on each one to position it.
    In short, is there any way for acrobat to revert to the current tool after a quick key zoom?

    JFrame.setDefaultLookAndFeelDecorated(true) has bugs! I agree. I created my own lookAndFeel extending mostly from MetalUI components. I then made my own RootPaneUI and TitlePane, so I was knee deep in the MetalRootPaneUI code. You cannot fix the flicker problem. When resizing, the new bounds are determined and then setBounds is called on the window, either a Frame or Dialog. The setBounds call forces lightWeight components to repaint(), causing the flicker.
    sometimes, when resizing, the resize cursor will not be reset after resizing.I found this one two. I actually fixed this one. In the MetalRootPaneUI.MouseInputHandler.mouseEntered(line:878):public void mouseEntered(MouseEvent ev)
      Window w = (Window)ev.getSource();
      // change this line to the one below it
      //lastCursor = w.getCursor();
      lastCursor = Cursor.getPredefinedCursor(0);//should work now
      mouseMoved(ev);
    }What appears to happen is when a Dialog is closed over a JFrame, the cursor gets screwed up somehow. I was able to recreate the bug. I simply made a JFrame with a button that created a dialog. I then used the titleBar's closeButton to close the dialog. Just after clicking the closeButton, I moved my mouse quickly over the edge of the dialog before it had a chance to disappear. Sometimes I was fast enough and the cursor got stuck. The above code is all I could do to fix it.
    The resizing was filckery or slow whether I used the real MetalRootPaneUI or my own. I also tried the dynamicLayout and noerasebackground with unacceptable trade-offs. Luckily my app only has one JFrame. So, I only setDefaultLookAndFeelDecorated JDialogs, which are never resizable in my app. This means that my JFrame is the only window in the app that uses the OS TitleBar rather than my own. Although, my JFrame resizes without flickering.

  • Strange behaviour with Safari.

    Very strange behaviour with Safari this morning.   Pages loading piecemeal or partially.   The content only becomes viewable after the cursor has passed over the area.   Have cleared caches and reported it but I'm wondering if this is a local matter here in the UK.   Anyone suffering similar problems?    Firefox is responding perfectly normally.

    I see a reply has come back via a previous post.   As I am trying to get a response to this one I shan't reply there but I should point out that for me, this is an isolated problem.   I do use open DNS but with no track history of problems there , I can't blame that.
    In the last few minutes normality has returned.

  • Email Actions with duplicate partners

    HI All,
        I am sending out 'automatic' emails using Actions to all partners having a "Z0000134" partner function on creation of a transaction. The other partner functions in the transactions are of the type Employee responsible and Z copy of Activity partner. The transaction is configured to have only one partner for a partner function. Also I have configured manual trigger of email actions for other partner functions.
    My issue is that the automatic action determination fails, whenever the same partner is present for both Z0000134 and employee responsible or activity partner. I am not sure why this is happening and i have noticed that its a non issue if i schedule the automatic action to trigger for employee responsible on create of a transaction instead of Z0000134.
    I think this has got to do something with the way sap merges the action with duplicate partners.
    Can anyone help me with this?
    Thanks
    Reddy

    Hi Reddy
    Please see the oss note no. 621183 which explains this behaviour
    (and also note 895546 point 4).
    "If you want all partner functions/partner function categories to be
    included in the action determination, deactivate BAdI implementation
    CRM_ACTION_BADI or you program a new implementation that meets your
    requirements."
    Since the same business partner exists more than once, this behaviour is
    seen. So please deactivate the Badi, and then retest, as this should resolve the issue.
    Best Regards
    Gavin

  • Audition CS6 Cursor Behaviour

    Just upgraded to Audition CS6, coming from Audition 3.0.
    All is well, except for the cursor behaviour.
    In audition 3.0 (and 1.5, and CEP, for that matter) the cursor would stay put after I started and stopped playing, using the space bar to start/stop. Now, the cursor jumps to the position where i stopped playing. I would like the cursor to remain at the starting point. Any ideas on that?
    Thanks in advance!

    Hi Durin,
    First of all; Thanks for your reply!
    With the Cursor, I mean what you call 'the dimmer playhead start time indicator' (wouldn't 'cursor' be easier? ).
    When I position the start time indicator anywhere and start playing the track, it will stay put until I stop playing.
    After I stop, it moves to the new position of the playhead. I want it to stay where it was when I started.
    Somehow I managed to achieve that by unticking the 'return playhead to start position on stop' box.
    I just tried it again and it now works like I want it to, again.
    It seems a bit inconsequent, but I can't quite put my finger on it.
    I can't seem to reproduce the problem right now.
    I will get back here once I'm sure what I want, because this isn't getting us anywhere.
    In the meantime, can I ask you; When I select a part of the track using shift and the arrow keys, it will only let me select from right to left (end to beginning), not from left to right. Is there any way of changing this? I can live with it, but I don't really see the point .

  • Strange behaviour with Subjective Assessments comments in SSM10 SP10

    Good day community,
    We have strange behaviour with Subjective Assessments comments in SSM10 SP10.
    We have been using this successfully for 3 quarters.
    The scenario is as follows.
    Business users capture Subjective Assessment comments successfully and these can be viewed on the scorecard overview for Q3. This can be printed to PDF successfully as well.
    A few hours later, when the user accesses the Scorecard Overview, the Q3(March 2014) comments are now replaced with the
    Q2(Dec 2013) comments. 
    This has not happened previously. We have recently deployed Internet Explorer (IE) 10 to some of the machines that previously used IE9 or IE8. Could this be a contributing factor?
    This has happened with one database on 2 contexts.  Although the database/scorecard in question has been created on SSM10, we have recently upgraded the rest of the organisation onto SSM10 from SSM7.5 but those are completely separate databases.
    We have not found a pattern yet, but there is only one assigned administrator for this database and she often has 'funny' things happen on her machine. Could it be possible that there's a virus on her machine? Or maybe there's a sequence or combination of steps that she's doing that could cause this? We have not been able to recreate the situation in our developer offices.
    Any ideas on this strange behaviour would be appreciated.
    Regards,
    Natasha

    Hi everyone,
    We have since noticed that if you go into the Administrator > Context Management > and change the "Person Responsible" and then save, once you go back to the Scorecard Overview all the Q3 comments have been overwritten with the Q2 comments.
    This happened on a different machine so it seems there could be a bug in the Administrator.
    Any thoughts on this strange behaviour would be appreciated.
    Regards,

  • Optimal read write performance for data with duplicate keys

    Hi,
    I am constructing a database that will store data with duplicate keys.
    For each key (a String) there will be multiple data objects, there is no upper limit to the number of data objects, but let's say there could be a million.
    Data objects have a time-stamp (Long) field and a message (String) field.
    At the moment I write these data objects into the database in chronological order, as i receive them, for any given key.
    When I retrieve data for a key, and iterate across the duplicates for any given primary key using a cursor they are fetched in ascending chronological order.
    What I would like to do is start fetching these records in reverse order, say just the last 10 records that were written to the database for a given key, and was wondering if anyone had some suggestions on the optimal way to do this.
    I have considered writing data out in the order that i want to retrieve it, by supplying the database with a custom duplicate comparator. If I were to do this then the query above would return the latest data first, and I would be able to iterate over the most recent inserts quickly. but Is there a performance penalty paid on writing to the database if I do this?
    I have also considered using the time-stamp field as the unique primary key for the primary database instead of the String, and creating a secondary database for the String, this would allow me to index into the data using a cursor join, but I'm not certain it would be any more performant, at least not on writing to the database, since it would result in a very flat b-tree.
    Is there a fundamental choice that I will have to make between write versus read performance? Any suggestions on tackling this much appreciated.
    Many Thanks,
    Joel

    Hi Joel,
    Using a duplicate comparator will slow down Btree access (writes and reads) to
    some degree because the comparator is called a lot during searching. But
    whether this is a problem depends on whether your app is CPU bound and how much
    CPU time your comparator uses. If you can avoid de-serializing the object in
    the comparator, that will help. For example, if you keep the timestamp at the
    beginning of the data and only read the one long timestamp field in your
    comparator, that should be pretty fast.
    Another approach is to store the negation of the timestamp so that records
    are sorted naturally in reverse timestamp order.
    Another approach is to read backwards using a cursor. This takes a couple
    steps:
    1) Find the last duplicate for the primary key you're interested in:
      cursor.getSearchKey(keyOfInterest, ...)
      status = cursor.getNextNoDup(...)
      if (status == SUCCESS) {
          // Found the next primary key, now back up one record.
          status = cursor.getPrev(...)
      } else {
          // This is the last primary key, find the last record.
          status = cursor.getLast(...)
      }2) Scan backwards over the duplicates:
      while (status == SUCCESS) {
          // Process one record
          // Move backwards
          status = cursor.getPrev(...)
      }Finally another approach is to use a two-part primary key: {string,timestamp}.
    Duplicates are not configured because every key is unique. I mention this
    because using duplicates in JE has more overhead than using a unique primary
    key. You can combine this with either of the above approaches -- using a
    comparator, negating the timestamp, or scanning backwards.
    --mark                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • MY system folder, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac) How do I remove them

    I have a Macbook Pro running Leopard 10.5.8. I had a problem with my my operating system (my fault, I moved a file I shoudnt have) couldnt boot up but was able to boot up from a backup. I managed to repair my original system except now all the system folders, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac).  For the most part the dupes are an exact copy, but not always.  I want to remove them to free up space and cant imagine duplicate folders in the /system/library are not hindering my computer. But I dont know where to start and am afraid of doing irreparable damage. Any ideas

    pacull,
    Use iCal>View>Show Notifications to choose what to do with the notification.

  • When I migrated the contents of my iMac to my new MacBook Pro (both running Lion), I ended up with duplicate icons in the launchpad. How do I get rid of them?

    When I used migration Assistant to transfer stuff from my iMac to my MacBook Pro, both running the latest update of Lion, I ended up with duplicate icons in the Launchpad. How do I correct this situation. Some can be deleted using the iPad method of holding down an icon until they all jiggle and then clicking the "X" to delete. However, most do not have x's appear next to them. Otherwise, the migration seemed to go okay.

    Launchpad will display an icon for each copy of an application that is currently installed (as well as any aliases to those applications), so you will see more than one icon for an application if you have more than one version of the application installed or aliased. So did you create any aliases of these apps on your old computer? If so, delete them.

  • Totally at a loss with Duplicates/Triplicates in iCloud on all devices

    OK - first, I am not an Apple novice and know my equipment backwards and forwards....but this one has me totally stumped and wondering if anyone has any ideas...
    Second -- I have never used MobileMe, so this is not a migration problem....
    Third - sync in iTunes is unchecked so I won't get duplicates
    So, setting up iCloud -- iPad, iPhone and on my Macbook Pro -- following the instructions exactly one step at a time as given in APple's own instructions...
    Sync 1 with iPhone creates duplicates in iCal, Reminders, Address Book on both Mac and iPhone
    Sync 2 with iPad creates duplicates in iCal, Reminders, Address Book on Mac, Iphone, and iPad -
    Results in duplicates and triplicates in all of them
    The only thing not effected is Notes -- which don't seem to sync at all now with iCloud...
    Now, to trouble shoot - I've gone through all the steps suggested by others here, and all it does is recreate the problem when iCloud sync is initiated again...
    I have even gone to icloud.com and deleted everything there to assure that isn't corrupted.
    I closed iCloud on all devices and selected "delete" from the sync options.
    I deleted all calendars, reminders, notes, Address books from all the devices.
    I restored the calendars, reminders, notes, Address books from TIme machine from earlier in the week - about as accurate as I can get right now with all the messed up iCloud syncs...
    Re-establish sync with iCloud and EVERY SINGLE problem with duplicates and triplicates is back...
    What the --
    Anyone have any ideas at all?  I'm going to go talk to the Genius Bar on Saturday (no appointments tomorrow on iPhone launch day), but I'm not hopeful they know more than I do about these things -- so I am turning to the experts here...
    AFter spending about 14 hours syncing resyncing restoring resyncing etc. I am not back to a clean tethered-through-iTunes sync, and have found iCloud to be 100% worthless....

    Thanks MaxGuru, but that absolutely did NOT do it. That was one of the first things I tried.
    OK -- so, I have returend from a TWO HOUR Genius Bar appointment and here is what we figured out: there was NOTHING that could be fixed to prevent the duplicates, not matter which solutions we tired (all those mentioned in the forum, and elsewhere).
    What did we do?....First, I have always backed everything up, so I had backups to play with. Make sure you back up everything before you try anything else I mention here (i.e. do an export for iCal, Address Book etc. -- I worked from fresh copies from my Time machine backup from Monday before all this mess started to assure it was as clean as possible.)  I put those on my desktop for the time being so we can access them quickly and easily.
    Step 1: delete all calendars, address book, reminders, notes from desktop, iPhone, iPad, and iCloud.com (yes, delete it all).
    Step 2: put a clean copy of all that data back on your Mac (or PC) from your backup.
    Step 3: In iCloud, turn off all calendars that they create that you are not using (work, home, calendar for example are calendars iCloud creates that I have never used since I have created my own and named them MyLastName, Holidays, etc).
    Step 3: Turn iCloud off everywhere: on your iPHone, on your Mac, and on your iPad. Make sure you turn off every single feature, not just calendar. Totally turn everything off. LOG OUT OF ICLOUD.COM, DELETE iCloud account on your iPad, DELETE Icloud account on your iPhone.
    Step 4: Restore your calendar, notes, address book on your Mac from backup (do not restore reminders - those are gone, never use old ones again, you'll create new down the road -- it just will not sync no matter what from an old copy at this point)
    Step 4: Hard-wire sync your iPad and your Mac through iTunes. You'll have to turn on all the sync features. DO NOT sync your iPhone (unless it will be the only thing you sync with your iCloud and mac). Go back into the Info tab and after syncing turn off all the sync features you turned on (contacts, calendars, etc)
    Step 5: Disconnect from iTunes
    Step 6. Log back into iCloud.com on your Mac. Leave it be.
      Step 6B - and this is important: On both your iPad and your iPhone, turn off all calendars that are not yours as per above.
    Step 7. Log back into iCLoud on your iPad.  Your iPAD will become your primary sync source. Now go ahead and one at a time turn on the address book (wait a bit, check icloud.com on your Mac to make sure it was connected properly). Then turn on the calendar (wait a bit -- depending on how big your calendar is, it might take 5-10 minutes for it to all upload to iCloud from the iPad). Check iCloud to make sure it is there. Same thing with all the other features -- one at a time from the iPad first.
    Step 7. From your Mac, go to Preferences>iCloud> and turn on one feature at a time. It should now be okay without any duplicates being introduced. Give it a few minutes to make sure everything remains stable.
    Step 8. Now connect your iPhone to iCloud-- be aware this might cause duplicates on your iPhone -- not to worry, there is a way to fix that. Add one feature at a time as you recreate your iCloud account on your iPhone. Start with Address, then then others...
    Step 9. Check your iPhone calendar. You might have duplicates on your iPhone. That is okay. DO NOT do any further sync at this time. If you only have one copy of your calendars on your iPhone, you are good to go, and your iCloud connection should now be stable.  Step 9B -- If you have duplicates on the iPhone, go to iCloud settings on your iPhone, and uncheck Calendars. When it says delete all on this iPhone, select yes. Wait a moment. Turn your iPhone back on. It should within a few moments push one single copy of the calendar to your iPhone. Now your are good to go.
    Why this is such a hassle, is anybody's guess. We literally had two Geniuses at my local Apple Store working on this with me, and we had Apple's Tech Support on the phone the entire time through the process.  When it takes about 7 people to correct a simple iCloud tech problem, you know there is something seriously amiss and there will be a lot of problems with people using iCloud for the smartphone features rather than the entertainment features down the road.
    Anyway -- hopefull this might work for some of you. If not, good luck in finding your solution.
    The overall answer seemed to have been to a) completely delete all old data and backup clean copies, and b) use the iPad DEVICE as your primary inital iCloud sync source. How backward is that, when your desktop/laptop should always be one's primary source.

  • How is the best way to deal with duplicate photos

    I am using a new retina 27" iMac 16gb ram OS X 10.10.1
    Aperture 3.6
    What is the best way to deal with duplicates that get in Aperture Vaults
    I have used Gemini and it finds duplicates, but I have no way of telling if the original are still there.
    I don't want to go through 15000 photos to try to find the duplicate.
    Thanks Charlie

    You mean - one image in a vault, one in a library?  Or duplicates in the same library?
    Photo Sweeper can scan several libraries or folders at the same time and display the duplicates side by side to let you pick which to keep.  You can define rules to mark photos for automatic deletion as well.
    http://overmacs.com/photosweeper.html

  • How to create a playlist *with* duplicate songs

    I have a practice where I need to play a playlist with duplicate audio tracks.  The audio tracks are not duplicated in the iTunes app and I don't want to duplicate them as audio tracks.  I only want to create a playlist that will play the same audio track at different points in the playst.  For example...
    Announcement of beginning
    Round 1
    Announcement of task1
    John Doe 1
    John Doe 2
    3 minute work window
    Countdown of 10 minutes
    Round 2
    Announcement of task2
    John Doe 3
    John Doe 4
    3 minute work window
    Countdown of 10 minutes
    Round 3
    Announcement of task1
    John Doe 5
    John Doe 6
    3 minute work window
    Countdown of 10 minutes
    Round 2
    Announcement of task2
    John Doe 7
    John Doe 8
    3 minute work window
    Countdown of 10 minutes
    As you can see... I need to be able to duplicate the playlist audio tracks at certain points in the playlist to create the event that I need for that day.
    The problem is that iTunes sees that a duplicate track is put into the playlist and doesn't allow it.  I end up with this as I can not readd an audio track that I have in the playlist already.
    Announcement of beginning
    Round 1
    Announcement of task1
    John Doe 1
    John Doe 2
    3 minute work window
    Countdown of 10 minutes
    Round 2
    Announcement of task2
    John Doe 3
    John Doe 4
    John Doe 5
    John Doe 6
    John Doe 7
    John Doe 8
    Is there no way to tell iTunes to allow duplicate audio tracks in a playlist?

    Smart playlists and playlist folders won't hold duplicate entries, but it should be possible to put the same track more than once into a regular playlist. Go to Edit > Preferences > Advanced and click the button Reset Warnings... iTunes should now warn you when you try to add duplicate items to a playlist, but you should have the option to add the items anyway.
    tt2

Maybe you are looking for