Date: 07/07/00
- Next message: Spruce Weber: "[phplib] extending permissions"
- Previous message: Mikhail Avrekh: "Re: [phplib] Configuring PHPLIB"
- In reply to: Tim A. Jensen: "[phplib] Configuring PHPLIB"
- Next in thread: Björn Schotte: "Re: [phplib] db_oci8 next_record() and disconnect()"
- Reply: Björn Schotte: "Re: [phplib] db_oci8 next_record() and disconnect()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hello,
Maybe someone who uses Oracle 8 has come across the same problem. In
db_oci8.inc there is the following code :
$errno=OCIError($this->Parse);
if(1403 == $errno) { # 1043 means no more records found
$this->Error="";
$this->disconnect();
$stat=0;
} else {
...get the record....
}
However, it seems like the disconnect() doesn't happen when the last row
is reached, and since my document uses many queries to various tables, the
"max cursors exceeded" error comes up eventually. The error code for "last
record reached" is ORA-01403 -- should I maybe compare $errno to this
whole string ?
Also - how come disconnect() calls ocilogoff() and not
ocifreestatement() ? The latter would seem like a more logical choice, in
order not to have to re-establish connections for every query...
Thanks !
M.
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: Spruce Weber: "[phplib] extending permissions"
- Previous message: Mikhail Avrekh: "Re: [phplib] Configuring PHPLIB"
- In reply to: Tim A. Jensen: "[phplib] Configuring PHPLIB"
- Next in thread: Björn Schotte: "Re: [phplib] db_oci8 next_record() and disconnect()"
- Reply: Björn Schotte: "Re: [phplib] db_oci8 next_record() and disconnect()"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

