Change Details
| src/Pluf/DB/MySQL.php |
| 163 | 163 | return '`'.$col.'`'; |
| 164 | 164 | } |
| 165 | 165 | |
| 166 | /** |
| 167 | * Start a transaction. |
| 168 | */ |
| 169 | function begin() |
| 170 | { |
| 171 | if (Pluf::f('db_mysql_transaction', false)) { |
| 172 | $this->execute('BEGIN'); |
| 173 | } |
| 174 | } |
| 175 | |
| 176 | /** |
| 177 | * Commit a transaction. |
| 178 | */ |
| 179 | function commit() |
| 180 | { |
| 181 | if (Pluf::f('db_mysql_transaction', false)) { |
| 182 | $this->execute('COMMIT'); |
| 183 | } |
| 184 | } |
| 185 | |
| 186 | /** |
| 187 | * Rollback a transaction. |
| 188 | */ |
| 189 | function rollback() |
| 190 | { |
| 191 | if (Pluf::f('db_mysql_transaction', false)) { |
| 192 | $this->execute('ROLLBACK'); |
| 193 | } |
| 194 | } |
| 195 | |
| 166 | 196 | function __toString() |
| 167 | 197 | { |
| 168 | 198 | return '<Pluf_DB_MySQL('.$this->con_id.')>'; |
Download the corresponding diff file