Re: [Dbix-class] ★ VOTE NOW: DBIC Governance and Namespace Control ★

2016-12-06 Thread Konstantin A. Pustovalov
Proposal B ___ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/dbix-class@lists.scsys.co.uk

Re: [Dbix-class] Deletion of related rows in MySQL

2013-04-09 Thread Konstantin A. Pustovalov
09.04.2013 12:51, Peter Rabbitson ?: On Tue, Apr 09, 2013 at 12:35:04PM +0400, Konstantin A. Pustovalov wrote: Hi list! I have a code which I have narrowed to http://paste.scsys.co.uk/240549 It does $schema-resultset-search_rs-search_related_rs-delete This happened to work with DBIC v

Re: [Dbix-class] Deletion of related rows in MySQL

2013-04-09 Thread Konstantin A. Pustovalov
09.04.2013 13:12, Peter Rabbitson пишет: On Tue, Apr 09, 2013 at 01:00:56PM +0400, Konstantin A. Pustovalov wrote: 09.04.2013 12:51, Peter Rabbitson ?: On Tue, Apr 09, 2013 at 12:35:04PM +0400, Konstantin A. Pustovalov wrote: Hi list! I have a code which I have narrowed to http

[Dbix-class] Undetermined deployment statements

2013-04-09 Thread Konstantin A. Pustovalov
I have noticed strange behavior of $schema-deploy (actually my tests started to fail after DBIC upgrade). my $schema = Schema-connect( 'dbi:SQLite:dbmane=:memory:' ); $schema-deploy({ add_drop_table = 1 }); produces DROP TABLE some_table statements while my $schema = Schema-connect(

Re: [Dbix-class] Undetermined deployment statements

2013-04-09 Thread Konstantin A. Pustovalov
09.04.2013 14:31, Peter Rabbitson пишет: On Tue, Apr 09, 2013 at 02:19:02PM +0400, Konstantin A. Pustovalov wrote: I have noticed strange behavior of $schema-deploy (actually my tests started to fail after DBIC upgrade). You are on a roll today eh? :) indeed! Try this please: success

Re: [Dbix-class] exception_action fail after DBIC upgrade

2013-01-22 Thread Konstantin A. Pustovalov
Object which stringifies to empty string is definitely not the same as empty string (the former is true value while latter is not). Yes, except that it is a flawed assumption that folks check for truthiness of $@. In fact any code that does this (if ($@) { ... }) is arguably wrong. The only

Re: [Dbix-class] exception_action fail after DBIC upgrade

2013-01-21 Thread Konstantin A. Pustovalov
Hi! Sorry for being silent. Loong russian holidays, you know ) But I have investigated a little. DBIC seems to not notice the exception if it (exeption) stringifies to zero length string. That was OK for my code since all error info was coded into exception type. Till DBIC upgrade. The fix was

[Dbix-class] exception_action fail after DBIC upgrade

2012-12-10 Thread Konstantin A. Pustovalov
Hello list! I'm using exception_action feature. Some of my tests fail after upgrading 0.08196 - 0.08204 I have reduced test case to the following: http://paste.scsys.co.uk/217862 exception_action is never get called in my setup. Am I doing something wrong or is it intended behavior? Thanx

Re: [Dbix-class] Announcing 0.08199

2012-08-23 Thread Konstantin A. Pustovalov
Does not install clean on perl 5.8.8 DBIC pulls SQLA 1.73pulls Class::Accessor::Grouped 0.10005pulls Class::XSAccessor 1.13 Class::XSAccessor 1.13tests fail on perl 5.8.8 Is SQLA's dependency on recent Class::Accessor::Grouped a real must? 23.08.2012 06:30, fREW Schmidt ?: Hello all! As

[Dbix-class] Throwing exceptions from exception_action

2012-04-23 Thread Konstantin A. Pustovalov
Hi DBIC gurus! I tried to throw typed exceptions from exception_action based on DBD error codes. And to no avail. Here are problems that I've faced: 1. There are very little docs and few tests on exception_action. 2. exception_action is being called twice ( at least more than once ) for

Re: [Dbix-class] Got a problem using DBIC+Params::Validate

2010-03-29 Thread Konstantin A. Pustovalov
On 03/26/2010 07:20 PM, Oleg Kostyuk wrote: IIRC, evaluating ResultSet in scalar contex will issue count() call. ResultSet is a blessed reference which is scalar. Can't i say $something = $rs ? Your @_ contain $self as first paramenter. Probably, you forget my $self = shift as first line

[Dbix-class] Got a problem using DBIC+Params::Validate

2010-03-26 Thread Konstantin A. Pustovalov
Hi, I'm getting strange behavior with the following ResultSet class: cut package Test::Schema::ResultSet::User; use strict; use base 'DBIx::Class::ResultSet'; use Params::Validate qw/:all/; sub touch { validate_pos( @_, { isa = __PACKAGE__ } ); } 1 /cut With this resultset class calling