Pluf Framework

Pluf Framework Commit Details


Date:2009-10-28 03:41:42 (15 years 1 month ago)
Author:Loic d'Anterroches
Branch:develop, master
Commit:718548557ca8435ff883b2665f459bb4604d6974
Parents: ab9c87820bde456320156211ff3ad42b8d61ae38
Message:Added the support of the MySQL transactions.

Changes:

File differences

src/Pluf/DB/MySQL.php
163163
164164
165165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
166196
167197
168198
return '`'.$col.'`';
}
/**
* Start a transaction.
*/
function begin()
{
if (Pluf::f('db_mysql_transaction', false)) {
$this->execute('BEGIN');
}
}
/**
* Commit a transaction.
*/
function commit()
{
if (Pluf::f('db_mysql_transaction', false)) {
$this->execute('COMMIT');
}
}
/**
* Rollback a transaction.
*/
function rollback()
{
if (Pluf::f('db_mysql_transaction', false)) {
$this->execute('ROLLBACK');
}
}
function __toString()
{
return '<Pluf_DB_MySQL('.$this->con_id.')>';

Archive Download the corresponding diff file

Branches

Tags

Number of commits:
Page rendered in 0.05945s using 13 queries.