Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange error 1115 Invalid operation for the cursor
Message
De
11/04/2010 09:51:30
 
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 SP2
Divers
Thread ID:
01459595
Message ID:
01459597
Vues:
109
This message has been marked as the solution to the initial question of the thread.
>Hi all,
>
>When i run this command i don't have error
>
>
>SELECT 'P1' AS cPauseNo , ;
>      cBk.* FROM NomPauseMois ;
>      INNER JOIN ColorBackPauseMois cBk ON cBk.iemplId = NomPauseMois.iemplId;
>      WHERE '/1' $ NomPauseMois.iemplId ;
>      UNION;
>      SELECT 'P2' AS cPauseNo ,;
>      cBk.* FROM NomPauseMois ;
>      INNER JOIN ColorBackPauseMois cBk ON cBk.iemplId = NomPauseMois.iemplId;
>      WHERE '/2' $ NomPauseMois.iemplId ;
>      INTO CURSOR TotPauseLettre READWRITE
>
> *--UT 05/2005 Fabio Le tour est joué on transforme '1458/1' ou '1458/2' en 1458(entier)
>*-- No error here
>    ALTER TABLE TotPauseLettre ALTER iemplId I
>
>
>This command give me strange error 1115 Invalid operation for the cursor.
>Field iemplId I exist !? I add only NomPauseMois.* in the two menbers of sql code.?
>
>SELECT 'P1' AS cPauseNo , ;
>      cBk.* ,;
>      NomPauseMois.* FROM NomPauseMois ;
>      INNER JOIN ColorBackPauseMois cBk ON cBk.iemplId = NomPauseMois.iemplId;
>      WHERE '/1' $ NomPauseMois.iemplId ;
>      UNION;
>      SELECT 'P2' AS cPauseNo ,;
>      cBk.* ,;
>      NomPauseMois.* FROM NomPauseMois ;
>      INNER JOIN ColorBackPauseMois cBk ON cBk.iemplId = NomPauseMois.iemplId;
>      WHERE '/2' $ NomPauseMois.iemplId ;
>      INTO CURSOR TotPauseLettre READWRITE
>
> *--UT 05/2005 Fabio Le tour est joué on transforme '1458/1' ou '1458/2' en 1458(entier)
>*-- Here I have now a 1115 error ?  iemplId I exist ( Number of field < 254 )
>    ALTER TABLE TotPauseLettre ALTER iemplId I
>

Your cursor (TotPauseLettre) contains a field with a name which is longer than 10 chars
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform