DBI problem

Antonis Kanavouras ankan at med.auth.gr
Mon Dec 4 13:46:01 EET 2000


Computers are useless. They can only give answers...
	Pablo Picasso

On Mon, 4 Dec 2000, Bassoukos Tassos wrote:

> 
> Nomizw pws to rows stoixeio eini mono endeiktiko, kai o monos sigouros
> tropos gia na breis ton ari8mo twn apotelesmatwn enos DBI query einai eite
> a) na kaneis fetchrow_*() mexri na teleiwsoun, eite b) ena COUNT(*)...
> 
> Ayto dioti to DBI dineithn to eley8ero ston driver na balei oti 8elei ekei
> ka8ws gia logous taxythtas o ari8mos tws rows merikes fores den einai
> dia8esimos otan epistrefetai to prwto match.

To 8ema einai oti den epistrefei tipota, ara metrwntas px ta loops tou
	while (my @result = $sth->fetchrow_array)
8a paroume outws h allws 0.

Epishs h plaka einai oti den epistrefei errormsg!!!

Anyway to ousiastiko provlhma opws katalavaineis den htan oti h
$sth->rows epistrefei -2 alla to oti den douleye genikotera.
Ly8hke otan apo to query evgala to teliko ";". Twra giati se alla queries
douleye kai se alla oxi ... Mallon prepei na einai bug tou DBI::mysql
An yparxoun antirhseis 8a exei endiaferon

Eyxaristw
Antonis




More information about the Linux-greek-users mailing list