[Bast-commits] r4225 - in DBIx-Class/0.08/trunk: .
lib/DBIx/Class/Storage lib/DBIx/Class/Storage/DBI
matthewt at dev.catalyst.perl.org
matthewt at dev.catalyst.perl.org
Mon Mar 24 18:01:18 GMT 2008
Author: matthewt
Date: 2008-03-24 18:01:18 +0000 (Mon, 24 Mar 2008)
New Revision: 4225
Modified:
DBIx-Class/0.08/trunk/
DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm
DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/Oracle.pm
DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/Pg.pm
DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/mysql.pm
Log:
r17673 at agaton (orig r4219): gphat | 2008-03-23 23:52:13 +0000
Remove unnecessary passing of $self->dbh as a separate param to savepoint methods
Property changes on: DBIx-Class/0.08/trunk
___________________________________________________________________
Name: svk:merge
- 168d5346-440b-0410-b799-f706be625ff1:/DBIx-Class-current:2207
462d4d0c-b505-0410-bf8e-ce8f877b3390:/local/bast/DBIx-Class:3159
9c88509d-e914-0410-b01c-b9530614cbfe:/local/DBIx-Class:32260
9c88509d-e914-0410-b01c-b9530614cbfe:/local/DBIx-Class-CDBICompat:54993
9c88509d-e914-0410-b01c-b9530614cbfe:/vendor/DBIx-Class:31122
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/DBIx-Class/0.08/branches/cdbicompat_integration:4160
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/DBIx-Class/0.08/branches/on_disconnect_do:3694
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/DBIx-Class/0.08/branches/oracle_sequence:4173
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/DBIx-Class/0.08/branches/savepoints:4218
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/DBIx-Class/0.08/branches/versioned_enhancements:4125
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class-C3:318
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class-current:2222
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class-joins:173
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class-resultset:570
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/datetime:1716
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/find_compat:1855
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/find_unique_query_fixes:2142
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/inflate:1988
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/many_to_many:2025
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/re_refactor_bugfix:1944
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/reorganize_tests:1827
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/resultset-new-refactor:1766
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/resultset_2_electric_boogaloo:2175
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/resultset_cleanup:2102
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/sqlt_tests_refactor:2043
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/trunk/DBIx-Class:3606
fe160bb6-dc1c-0410-9f2b-d64a711b54a5:/local/DBIC-trunk-0.08:10510
+ 168d5346-440b-0410-b799-f706be625ff1:/DBIx-Class-current:2207
462d4d0c-b505-0410-bf8e-ce8f877b3390:/local/bast/DBIx-Class:3159
9c88509d-e914-0410-b01c-b9530614cbfe:/local/DBIx-Class:32260
9c88509d-e914-0410-b01c-b9530614cbfe:/local/DBIx-Class-CDBICompat:54993
9c88509d-e914-0410-b01c-b9530614cbfe:/vendor/DBIx-Class:31122
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/DBIx-Class/0.08/branches/cdbicompat_integration:4160
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/DBIx-Class/0.08/branches/on_disconnect_do:3694
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/DBIx-Class/0.08/branches/oracle_sequence:4173
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/DBIx-Class/0.08/branches/savepoints:4219
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/DBIx-Class/0.08/branches/versioned_enhancements:4125
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class-C3:318
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class-current:2222
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class-joins:173
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class-resultset:570
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/datetime:1716
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/find_compat:1855
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/find_unique_query_fixes:2142
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/inflate:1988
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/many_to_many:2025
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/re_refactor_bugfix:1944
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/reorganize_tests:1827
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/resultset-new-refactor:1766
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/resultset_2_electric_boogaloo:2175
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/resultset_cleanup:2102
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/branches/DBIx-Class/sqlt_tests_refactor:2043
bd8105ee-0ff8-0310-8827-fb3f25b6796d:/trunk/DBIx-Class:3606
fe160bb6-dc1c-0410-9f2b-d64a711b54a5:/local/DBIC-trunk-0.08:10510
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/Oracle.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/Oracle.pm 2008-03-24 18:01:14 UTC (rev 4224)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/Oracle.pm 2008-03-24 18:01:18 UTC (rev 4225)
@@ -26,17 +26,17 @@
}
sub _svp_begin {
- my ($self, $dbh, $name) = @_;
+ my ($self, $name) = @_;
- $dbh->do("SAVEPOINT $name");
+ $self->dbh->do("SAVEPOINT $name");
}
# Would've implemented _svp_release here, but Oracle doesn't support it.
sub _svp_rollback {
- my ($self, $dbh, $name) = @_;
+ my ($self, $name) = @_;
- $dbh->do("ROLLBACK TO SAVEPOINT $name")
+ $self->dbh->do("ROLLBACK TO SAVEPOINT $name")
}
1;
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/Pg.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/Pg.pm 2008-03-24 18:01:14 UTC (rev 4224)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/Pg.pm 2008-03-24 18:01:18 UTC (rev 4225)
@@ -80,21 +80,21 @@
}
sub _svp_begin {
- my ($self, $dbh, $name) = @_;
+ my ($self, $name) = @_;
- $dbh->pg_savepoint($name);
+ $self->dbh->pg_savepoint($name);
}
sub _svp_release {
- my ($self, $dbh, $name) = @_;
+ my ($self, $name) = @_;
- $dbh->pg_release($name;)
+ $self->dbh->pg_release($name;)
}
sub _svp_rollback {
- my ($self, $dbh, $name) = @_;
+ my ($self, $name) = @_;
- $dbh->pg_rollback_to($name);
+ $self->dbh->pg_rollback_to($name);
}
1;
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/mysql.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/mysql.pm 2008-03-24 18:01:14 UTC (rev 4224)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI/mysql.pm 2008-03-24 18:01:18 UTC (rev 4225)
@@ -17,21 +17,21 @@
}
sub _svp_begin {
- my ($self, $dbh, $name) = @_;
+ my ($self, $name) = @_;
- $dbh->do("SAVEPOINT $name");
+ $self->dbh->do("SAVEPOINT $name");
}
sub _svp_release {
- my ($self, $dbh, $name) = @_;
+ my ($self, $name) = @_;
- $dbh->do("RELEASE SAVEPOINT $name");
+ $self->dbh->do("RELEASE SAVEPOINT $name");
}
sub _svp_rollback {
- my ($self, $dbh, $name) = @_;
+ my ($self, $name) = @_;
- $dbh->do("ROLLBACK TO SAVEPOINT $name")
+ $self->dbh->do("ROLLBACK TO SAVEPOINT $name")
}
1;
Modified: DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm
===================================================================
--- DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm 2008-03-24 18:01:14 UTC (rev 4224)
+++ DBIx-Class/0.08/trunk/lib/DBIx/Class/Storage/DBI.pm 2008-03-24 18:01:18 UTC (rev 4225)
@@ -882,7 +882,7 @@
return 0;
}
$self->debugobj->svp_begin($name) if $self->debug;
- $self->_svp_begin($self->dbh(), $name);
+ $self->_svp_begin($name);
}
sub svp_release {
@@ -900,7 +900,7 @@
return 0;
}
$self->debugobj->svp_release($name) if $self->debug;
- $self->_svp_release($self->dbh(), $name);
+ $self->_svp_release($name);
}
sub svp_rollback {
@@ -918,7 +918,7 @@
return 0;
}
$self->debugobj->svp_rollback($name) if $self->debug;
- $self->_svp_rollback($self->dbh(), $name);
+ $self->_svp_rollback($name);
}
sub txn_begin {
More information about the Bast-commits
mailing list