Skip to content
This repository has been archived by the owner on Apr 8, 2023. It is now read-only.

Commit

Permalink
Fix ->driver->getNumFields() on non select querys
Browse files Browse the repository at this point in the history
  • Loading branch information
erickmcarvalho committed Oct 31, 2014
1 parent 2448fed commit 469f82f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/LikePDO/Drivers/MssqlDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,7 @@ public function getNumFields($statement)
{
if(!is_resource($statement))
{
throw new LikePDOException("There is no active statement");
return false;
return 0;
}
else
{
Expand Down

0 comments on commit 469f82f

Please sign in to comment.