🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.delphi.bazy-danych
Article #82568

Re: TIBCQuery Insert/Post nie zważa na triggera autoinkremantacji

#82568
From: Tomek D
Date: Thu, 20 Aug 2015 10:42
16 lines
1594 bytes
W dniu 2015-08-20 o 12:32, Borneq pisze:
> W dniu 20.08.2015 o 12:16, Tomek D pisze:
>> A skąd ma znać to pole, skoro nadawane jest po stronie bazy?
>> Możliwości jest kilka: - pobrać wartość ID ręcznie i podać jego
>> wartość w insert
>
> odpada, ta wartość jest ustawiane w triggerze przed samym insert

Jeśli trigger jest dobrze napisany (np. taki jak sugeruje IBExpert) to w 
niczym nie przeszkadza.
A czytałeś w ogóle dokumentację do tych komponentów?
20 sek i proszę 
https://www.devart.com/ibdac/docs/?auto_key_field_value_gen.htm
To rozwiązuje Twoje problemy.

Tomek D.
Technical Details
Message-ID: <mr4av3$4rs$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
References: <mr481t$1q8$1@node2.news.atman.pl> <mr49el$ugh$1@node1.news.atman.pl> <mr4ab7$488$1@node2.news.atman.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed2.atman.pl!newsfeed.atman.pl!.POSTED!not-for-mail
From: Tomek D <bez@dresu.invalid>
Newsgroups: pl.comp.lang.delphi.bazy-danych
Subject: Re: TIBCQuery Insert/Post nie zważa na triggera
 autoinkremantacji
Date: Thu, 20 Aug 2015 12:42:43 +0200
Organization: ATMAN - ATM S.A.
Lines: 16
Message-ID: <mr4av3$4rs$1@node2.news.atman.pl>
References: <mr481t$1q8$1@node2.news.atman.pl> <mr49el$ugh$1@node1.news.atman.pl> <mr4ab7$488$1@node2.news.atman.pl>
NNTP-Posting-Host: 82.160.134.181
Mime-Version: 1.0
X-Trace: node2.news.atman.pl 1440067363 4988 82.160.134.181 (20 Aug 2015 10:42:43 GMT)
X-Complaints-To: usenet@atman.pl
NNTP-Posting-Date: Thu, 20 Aug 2015 10:42:43 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
In-Reply-To: <mr4ab7$488$1@node2.news.atman.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit