Inicio > Base de Datos, Oracle > Error Oracle Undefined variable: rowcount en oci8_result.php

Error Oracle Undefined variable: rowcount en oci8_result.php

Si estamos creando una aplicacion Codeigniter y realizamos una conexión Oracle puede generarnos la consulta un error en la respuesta de los datos de este tipo:

Severity: Notice
Message: Undefined variable: rowcount
Filename: oci8/oci8_result.php
Line Number: XX

Para corregirla modificaremos en archivo oci8_result.php (…database\drivers\oci8\oci8_result.php) hay que:

Reemplazar

return $rowcount;

por

return $this->num_rows;
Advertisement
  1. Aún no hay comentarios.
  1. Aún no hay trackbacks

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.