Rev 1316 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1316 | Rev 1471 | ||
---|---|---|---|
Line 84... | Line 84... | ||
84 | $ret = $this->res->rowCount(); |
84 | $ret = $this->res->rowCount(); |
85 | 85 | ||
86 | // -1 can happen when PDO is connected via ODBC that is running a driver that does not support num_rows (e.g. Microsoft Access) |
86 | // -1 can happen when PDO is connected via ODBC that is running a driver that does not support num_rows (e.g. Microsoft Access) |
87 | if ($ret === -1) { |
87 | if ($ret === -1) { |
88 | $this->prefetchAll(); |
88 | $this->prefetchAll(); |
89 | return count($this->prefetchedArray) + $this->countAlreadyFetched; |
89 | return count($this->prefetchedArray); |
90 | } |
90 | } |
91 | 91 | ||
92 | return $ret; |
92 | return $ret; |
93 | } |
93 | } |
94 | 94 |