Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A NICE message when Primary Key is violated
Message
 
 
À
05/05/2001 02:41:19
Walter Meester
HoogkarspelPays-Bas
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00503380
Message ID:
00503945
Vues:
25
>Hi nadya,
>
>>>Three possibilities come up in mind:
>>>1. Use SQL - INSERT
>>>2. Use Record or tablebuffering and commit the insert with tableupdate.
>
>>Could you please expand the option 2 here?
>
>See Message #503704
>
>When using record and tablebuffering the record is not validated (Uniqueness viloation or triggers) until the record is commited with tableupdate(). So in this case you can always add a new record with APPEND BLANK, even if a blank PK alread exists.

Walter,

I thing you're wrong. We use TableBuffering, yet we can't issue APPEND BLANK, if one blank record is already in a table. The error message appears immediatelly, before TableUpdate.

>
>In my personal framework, the changes people make in a form are (record or table) buffered. The users can commit or rollback the changes anytime.
>
>Walter,
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform