Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SCAN Confused?
Message
De
07/06/2001 12:03:08
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
 
À
06/06/2001 23:46:53
Jonathan Cochran
Alion Science and Technology
Maryland, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00515720
Message ID:
00516416
Vues:
15
>There were a few apparent duplicates in the table. When I tried to add the primary key index, it gave me one error message (I assume that as soon as it finds one violation, it just terminates the whole thing). However, in "manually" comparing all of the datetimes (using an equality test with either SQL or a loop), there are no duplicate datetimes (just the ones that look like duplicates). Clear as mud, isn't it :)

Are you sure the collating sequence on that tag is Machine? Other collating sequences, when used on stuff other than strings, may yield gray hair, higher blood pressure and neurological disorders.

Internally, the datetime is two integers - one for the Julian day number, and the other for the number of milliseconds. There should be no rounding issues here; if you add 1, it should add a thousand milliseconds to the right portion of it, period. I would really be surprised if adding 1 to a datetime ever managed to produce a duplicate.

However, if you use a General or any other collating sequence, the key value is interpreted as a string, and then converted into a two-byte equivalents of the characters it represents. These collating sequences are also case blind, which means that two values differing by 32 on any of the bytes in the 65 to 90 range may yield the same final key value, thus giving you duplicates.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform