Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MySQL - Updatable SQL Pass Through Result Sets
Message
 
To
01/07/2002 23:54:44
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00673761
Message ID:
00674341
Views:
21
=CURSORSETPROP("UpdateNameList", "id pr1.id, keyInDate pr1.keyInDate, unit pr1.unit")
=CURSORSETPROP("UpdatableFieldList", "keyInDate, unit" )

MartinJ


>here is my SPT command :
>
>lconn = SQLSTRINGCONNECT("DRIVER=MYSQL;SERVER=127.0.01;DATABASE=test;UID=root")
>SQLEXEC(lconn,"SELECT * FROM pr1","cPr")
>=CURSORSETPROP("TABLES", "pr1","cPr")
>=CURSORSETPROP("UpdateNameList", "id pr1.id keyInDate pr1.keyInDate unit pr1.unit")
>=CURSORSETPROP("KeyFieldList", "id")
>=CURSORSETPROP("UpdatableFieldList", "keyInDate unit" )
>=CURSORSETPROP("SendUpdates", .t.)
>
>ok, let me rekey the value for the unit field from 'KG' to 'KG'. issue TABLEUPDATE()
>
>Then I will receive :
>
>Update conflict, ok, revert, help ...
>
>but if I key in differ value, eg, from 'KG' to 'PCS' then it is fine.
>
>what wrong with my command?
>
>TIA.
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform