Article View: pl.comp.lang.delphi.bazy-danych
Article #70193Problem z zapytaniem
From: AbiX
Date: Thu, 21 Jun 2007 11:57
Date: Thu, 21 Jun 2007 11:57
26 lines
1622 bytes
1622 bytes
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??
Technical Details
Message-ID:
<f5dpc8$qb5$1@nemesis.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-mailShow 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: Problem z zapytaniem Date: Thu, 21 Jun 2007 13:57:32 +0200 Organization: tp.internet - http://www.tpi.pl/ Lines: 26 Message-ID: <f5dpc8$qb5$1@nemesis.news.tpi.pl> NNTP-Posting-Host: avy18.internetdsl.tpnet.pl Mime-Version: 1.0 X-Trace: nemesis.news.tpi.pl 1182427336 26981 83.18.50.18 (21 Jun 2007 12:02:16 GMT) X-Complaints-To: usenet@tpi.pl NNTP-Posting-Date: Thu, 21 Jun 2007 12:02:16 +0000 (UTC) User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit