Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A bug or normal integer operation ???
Message
De
01/08/2000 10:21:28
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
A bug or normal integer operation ???
Divers
Thread ID:
00399275
Message ID:
00399275
Vues:
53
Some_Id is integer in all tables tested.
select * from tableA a ;
  inner join TableB b on a.Some_Id=b.Some_Id ;
  where b.Some_Id between 1 and 0xFFFFFFFF
Returns 0 records !!! but :
select * from tableA a ;
  inner join TableB b on a.Some_Id=b.Some_Id ;
  where a.Some_Id between 1 and 0xFFFFFFFF
Returns n records. This is a problem if you have more joins and have to use a field from any table except first. If you use 0x7FFFFFFF then it works. It doesn't help if you write in hex notation or not. I really could have a value greater than (should I say less than) 0x7FFFFFFF. Any reference to this on MSDN ? TIA.
PS: I'm aware that an integer is in the range –2147483647,2147483646. I just can't understand why it works partially.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform