bad function

Bug #194378 reported by Luca
2
Affects Status Importance Assigned to Milestone
Sylar PHP Web-Framework
Fix Released
Low
Gianluca Giusti [brdp]

Bug Description

if the function resultRows() in the Database.php class
has called before that the connection is opened, the function crash

Sorry for my english...

Changed in sylar:
importance: Undecided → Low
status: New → In Progress
assignee: nobody → brdp
Revision history for this message
Gianluca Giusti [brdp] (brdp) wrote :

It' not a bug because once you run the query you can close the connection and after read the data in the result. For example:

db->connect();
$sql = "select * from SYLAR_event_log";

$db->execSmartQuery($sql);
$db->disconnect();

if($db->resultRows() > 0){
 while($row=$db->fetchArray() ) {
  echo "\n";
  print_r( $row );
 }
}else{
 echo "No rows found.";
}

Changed in sylar:
milestone: none → kickstart
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.