Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Double ampersands causes problem
Message
 
 
À
31/07/2007 08:30:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01244817
Message ID:
01244828
Vues:
13
This message has been marked as a message which has helped to the initial question of the thread.
VFP treats '&&' as begining of inline comment regardless if it's inside string literal or not. IMO, it's a bug which not going to be be fixed.
You'll have to either split string literal or replace '&' with CHR(38)
UPPER(Password)="&" + "&ETC       " 
* or
UPPER(Password)= CHR(38) + CHR(38) + "ETC       " 
>My SQL was like this:
>
>
>SELECT Numero AS PrimaryKey,Session FROM Member WHERE UPPER(Username)="SOMETHING" AND UPPER(Password)="&&ETC       " ORDER BY 1
>
>
>But, this generates an error in VFP. The cause is the double ampersands. How can I adjust to support such a search in my SQL?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform