🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

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

#82567
From: Borneq
Date: Thu, 20 Aug 2015 10:32
13 lines
1533 bytes
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

> - skorzystać ze składni insert into table1 (f1) values (:f1) returning
> (id) into :id

returning (id) rzeczywiście działa, ale nie mogę pobrać za pomocą 
FIeldByName, może jakoś inaczej? Natomiast gdy chcę wstawić do 
parametru, jest błąd SQL, mam wersję Firebirda 2.5.
Technical Details
Message-ID: <mr4ab7$488$1@node2.news.atman.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.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>

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