Bug corrected and PGSQL/MySQL operators
Stefano Corsi <[email protected]> Thu, 22 May 2003 15:24:03 +0000
| Newsgroups | gmane.comp.lang.moto.devel |
|---|---|
| Organization | Moto Project |
| Message-ID | <[email protected]> |
Hi Dave,
I've corrected a bug in my code inside motoX_array_lval that caused the s=
tack=20
to grow forever ... the bug has shown up while implementing PGSQL/MySQL=20
overloaded operator. Do you (Dave, Shay, Cory) think these operator make=20
sense?
++ and -- on rset instead of rset.next(), rset.prev()
[int] and [string ]instead of rset.getString(int) and rset.getString(stri=
ng)
So now you could write:
while(rset++){
=09for(j=3D0;j<rset.columns();j++)
=09=09print (j=3D=3D0?"|":"")+pad(rset[j],15)+ "|";
=09print "\n";
=09i++;
}
and
while(rset++){
=09print (rset["name"])+ "|";
=09print "\n";
=09i++;
}
Stefano