🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Problem z zapytaniem

#70194
From: AbiX
Date: Thu, 21 Jun 2007 12:50
31 lines
1937 bytes
AbiX pisze:
> Witam
> Nie mam pojęcia dlaczego wywala błąd.
> 
>  if SQLkw.Active then SQLKw.Close;
> 
>  SQLKw.CommandText:='Select * from KWATERA where REZ_ID = :REZ';
>  SQLKw.ParamByName('REZ').AsInteger:=RezID;   //RezID :Integer;
>  SQLKw.Open;
> 
>  if SQLKw.IsEmpty then ShowMessage('Brak rekordów'); // tu wywala błąd
>  x:=SQLkw.RecordCount;                               // tu także
> 
> 
> Błąd typu EDatabaseError [0x0005]: Operation Not Supported
> 
> Dodam tylko że jeśli mam polecenie
> 'Select * from KWATERA where INNY_NR LIKE %' to przechodzi
> a jeśli
> 'Select * from KWATERA where INNY_NR LIKE :NR'
> SQLkw.ParamByName('NR').AsString:='%';  to nie przegodzi.
> 
> Wywala się nie w momencie Open ale podczas próby wydobycia czegokolwiek 
> z bazy
> Mam [D2007, dbExpress + firefird 2]
> 
> Może dbExpress nie obsługują w pełni SQL'a Firebirda??
Zdałem sobie sprawę, że pytania nie zadałem :)
pomożecie??
Chciałbym zrobić 'Select * from KWATERA where (INNY_NR LIKE :NR) and 
REZ_ID=:REZ'
Technical Details
Message-ID: <f5ds8r$hmj$1@atlantis.news.tpi.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
References: <f5dpc8$qb5$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.nask.pl!news.nask.org.pl!newsfeed.tpinternet.pl!atlantis.news.tpi.pl!news.tpi.pl!not-for-mail
From: AbiX <abix@poczta.fm>
Newsgroups: pl.comp.lang.delphi.bazy-danych
Subject: Re: Problem z zapytaniem
Date: Thu, 21 Jun 2007 14:50:45 +0200
Organization: tp.internet - http://www.tpi.pl/
Lines: 31
Message-ID: <f5ds8r$hmj$1@atlantis.news.tpi.pl>
References: <f5dpc8$qb5$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: avy18.internetdsl.tpnet.pl
Mime-Version: 1.0
X-Trace: atlantis.news.tpi.pl 1182430299 18131 83.18.50.18 (21 Jun 2007 12:51:39 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Thu, 21 Jun 2007 12:51:39 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.4 (Windows/20070604)
In-Reply-To: <f5dpc8$qb5$1@nemesis.news.tpi.pl>
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit