| | |
| | | |
| | | /** |
| | | +-----------------------------------------------------------------------+ |
| | | | program/include/rcube_db.php | |
| | | | | |
| | | | This file is part of the Roundcube Webmail client | |
| | | | Copyright (C) 2005-2012, The Roundcube Dev Team | |
| | | | | |
| | |
| | | | | |
| | | | PURPOSE: | |
| | | | Database wrapper class that implements PHP PDO functions | |
| | | | | |
| | | +-----------------------------------------------------------------------+ |
| | | | Author: Aleksander Machniak <alec@alec.pl> | |
| | | +-----------------------------------------------------------------------+ |
| | | */ |
| | | |
| | | |
| | | /** |
| | | * Database independent query interface. |
| | |
| | | |
| | | $this->debug($query); |
| | | |
| | | // destroy reference to previous result, required for SQLite driver (#1488874) |
| | | $this->last_result = null; |
| | | $this->db_error_msg = null; |
| | | |
| | | // send query |
| | | $query = $this->dbh->query($query); |
| | | |
| | | if ($query === false) { |
| | |
| | | * |
| | | * @param mixed $result Optional query handle |
| | | * |
| | | * @return int Number of rows or false on failure |
| | | * @return int Number of (matching) rows |
| | | */ |
| | | public function affected_rows($result = null) |
| | | { |