it easier to pass HashRefInflator data directly to ->populate
- Improve freeze/thaw semantics and error messages (RT#62546)
- Fix inconsistency in Manual::Features (RT#64500)
+ - Fix incorrect SQL when using for => 'shared' with MySQL (RT#64590)
* Misc
- Fix test warning on win32 - at this point the test suite is
konobi: Scott McWhirter
+littlesavage: Alexey Illarionov <littlesavage@orionet.ru>
+
lukes: Luke Saunders <luke.saunders@gmail.com>
marcus: Marcus Ramberg <mramberg@cpan.org>
return $self->SUPER::_generate_join_clause( $join_type );
}
+
+# LOCK IN SHARE MODE
+my $for_syntax = {
+ update => 'FOR UPDATE',
+ shared => 'LOCK IN SHARE MODE'
+};
+
+sub _lock_select {
+ my ($self, $type) = @_;
+
+ my $sql = $for_syntax->{$type} || croak "Unknown SELECT .. FOR type '$type' requested";
+
+ return " $sql";
+}
+
1;
});
} 'Limited FOR UPDATE select works';
+# shared-lock
+lives_ok {
+ $schema->txn_do (sub {
+ isa_ok (
+ $schema->resultset('Artist')->find({artistid => 1}, {for => 'shared'}),
+ 'DBICTest::Schema::Artist',
+ );
+ });
+} 'LOCK IN SHARE MODE select works';
+
my $test_type_info = {
'artistid' => {
'data_type' => 'INT',