<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Martin Schreiber wrote / napísal(a):
<blockquote cite="mid:201404250813.54581.mse00000@gmail.com" type="cite">
<pre wrap="">On Friday 25 April 2014 07:46:23 LacaK wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Do you have tried for ftAutoInc field simply set ReadOnly:=False; ?
-Laco.
P.S. there is feature request about automatic fetching of new values of
idnetity columns, but implementing it in generic way for all supported
SQLConnections is not trivial ;-)
</pre>
</blockquote>
<pre wrap=""><!---->In MSEgui I used flags in tfield.providerflags1
(pf1_refreshinsert,pf1_refreshupdate) which trigger the use of
the "returning" clause in insert or update statement if the DB supports it.
Additionally there is tcustomsqlconnection.updateprimarykeyfield() which is
called after insert, it automatically updates the primary key field field
with the "last insert id" if the DB supports it.
The third option is to use tsequencelink which automatically fetches sequence
values from the DB before inserting.
</pre>
</blockquote>
Thanks for interesting points, ideas <br>
-Laco.<br>
<br>
</body>
</html>