Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Local View with Views in JOIN condition
Message
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:
01101756
Message ID:
01101960
Vues:
21
>Hi all,
>
>This phenomenon seemed to have just started after I upgraded to VFP9. Here is my situation. I have a view setup as follows:
>
>CREATE SQL VIEW "VTable1" AS ;
>SELECT * FROM tabledatabase!Table1
>LEFT JOIN viewdatabase!View1 ON View1.Id = Table1.Id
>LEFT JOIN viewdatabase!View2 ON View1.Id = View2.Id
>
>If I perform the following:
>
>SELECT * FROM tabledatabase!vtable1
>
>All of the expected records are returned normally.
>
>However, if I open the view like this:
>
>
>USE tabledatabase!vtable1 NODATA
>.
>.
>.
>REQUERY()
>
>No records are returned. However, if I requery the JOIN views first like the following:
>
>USE tabledatabase!vtable1 NODATA
>.
>.
>.
>IF USED('View1')
> REQUERY('View1')
>ENDIF
>
>IF USED('View2')
> REQUERY('View2')
>ENDIF
>
>SELECT vtable1
>REQUERY()
>
>Then all of the records are turned as they should be. I know I tested this prior to VFP9 and I did not have to requery the JOINed views? Is this something new to VFP9 or is there some type of new VFP9 setting that can be set so I don't have to remember to go through and requery views that my be joined to a specified table in a local view such as the example I just illustrated?
>
>Any feedback would be greatly appreciated.
>
>Thanks,
>
>James Moore MCDBA, MCAD
>President
>Ministry Tracking Software, Inc.
>james@youthtrack.com

VFP9 doesn't requery the nested views.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform