Article View: pl.comp.lang.delphi.bazy-danych
Article #70192Re: wartosc NULL poprzez ParamByName
From: qqruźNIK
Date: Wed, 20 Jun 2007 11:59
Date: Wed, 20 Jun 2007 11:59
16 lines
1348 bytes
1348 bytes
GrzesiekN napisał(a):
> Query1.ParamByName('d').Clear;
>
O ile dobrze pamiętam to w komponentach DBE - jeżeli danemu parametrowi
wcześniej nie nadawałeś żadnej wartości - trzeba było dodatkowo ustawić
typ danych, żeby wiedział co to ma być ten null.
Inaczej się wywalał.
np:
Query1.ParamByName('d').DataType := ftInteger;
-------------
qqruźNIK
Technical Details
Message-ID:
<f5b4jf$3ai$1@news.onet.pl>Path:
mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mailReferences:
<f5b12o$oga$1@atlantis.news.tpi.pl> <f5b16j$oga$2@atlantis.news.tpi.pl> <1182339562.796478.203100@n60g2000hse.googlegroups.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.onet.pl!not-for-mail From: qqruźNIK <qqruznik@wywalto.poczta.onet.pl> Newsgroups: pl.comp.lang.delphi.bazy-danych Subject: Re: wartosc NULL poprzez ParamByName Date: Wed, 20 Jun 2007 13:59:52 +0200 Organization: Onet.pl Lines: 19 Message-ID: <f5b4jf$3ai$1@news.onet.pl> References: <f5b12o$oga$1@atlantis.news.tpi.pl> <f5b16j$oga$2@atlantis.news.tpi.pl> <1182339562.796478.203100@n60g2000hse.googlegroups.com> NNTP-Posting-Host: 83.238.97.18 Mime-Version: 1.0 X-Trace: news.onet.pl 1182340527 3410 83.238.97.18 (20 Jun 2007 11:55:27 GMT) X-Complaints-To: usenet@news.onet.pl NNTP-Posting-Date: Wed, 20 Jun 2007 11:55:27 +0000 (UTC) X-Sender: gFWBuy+8+0nj+Pc3yt7HNL/suIQFEBWy In-Reply-To: <1182339562.796478.203100@n60g2000hse.googlegroups.com> User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit