ATOUTFOX
COMMUNAUTÉ FRANCOPHONE DES PROFESSIONNELS FOXPRO
Visual FoxPro : le développement durable

Forum AtoutFox : bug: select ... with (buffering=.T.) vide le tampon d'enregistrement   

Sujet

rss Flux RSS des derniers messages

Vous devez vous identifier pour pouvoir poser une question ou répondre.

lun. 26 janvier 2015, 16h24

FoxInCloud (Th. Nivelet)
France France

atoutfox.public.association

bug: select ... with (buffering=.T.) vide le tampon d'enregistrement

tout est dans le code ci-après
clear
create cursor Test(test C(10))

insert into test values ('original')
CursorSetProp("Buffering", 3)
? "Row Buffering"

replace test with 'modified'
? '2' $ GetFldState(-1, 'test'), test.test && .T. modified

select * from test into cursor test2
? '2' $ GetFldState(-1, 'test'), test2.test && .T. original

select * from test with (buffering=.T.) into cursor test2
? '2' $ GetFldState(-1, 'test'), test2.test && .F. modified && with (buffering=.T.) has committed the ROW buffered changes

select test
TableRevert()
zap
insert into test values ('original')
CursorSetProp("Buffering", 5)
? "Table Buffering"

replace test with 'modified'
? '2' $ GetFldState(-1, 'test'), test.test && .T. modified

select * from test into cursor test2
? '2' $ GetFldState(-1, 'test'), test2.test && .T. original

select * from test with (buffering=.T.) into cursor test2
? '2' $ GetFldState(-1, 'test'), test2.test && .T. modified && with (buffering=.T.) has NOT committed the TABLE buffered changes


Permalink : http://www.atoutfox.org/nntp.asp?ID=0000015845
20 286 messages dans le forum • Liste complète des messages

www.atoutfox.org - Site de la Communauté Francophone des Professionnels FoxPro - v3.4.0 - © 2004-2026.
Cette page est générée par un composant COM+ développé en Visual FoxPro 9.0-SP2-HF3