lock record on server when uniquery.localupdate =true ?

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mvictor
Posts: 9
Joined: Tue 11 Aug 2009 15:38

lock record on server when uniquery.localupdate =true ?

Post by mvictor » Fri 14 Aug 2009 14:28

Hi!

this code is lock record on server (firebird)

Code: Select all

  myuniquery.localupdate:=true;
  myuniquery.sql.clear;
  myuniquery.sql.add('select *, cast(0 as integer) as add_fld  from table1');
  myuniquery.open;
  myuniquery.fieldbyname('add_fld').readonly:=false;
  myuniquery.edit;
  myuniquery.fieldbyname('add_fld').value:=1;
  myuniquery.post;
so should be?
thanks.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Mon 17 Aug 2009 07:08

Set the LockMode property of TUniQuery to lmNone. In this case locking should not be performed.

Post Reply