Re: [Dbix-class] New user with JOIN problem

2009-05-13 Thread Matt S Trout
. Look at the DBIx::Class::Schema::Loader::Base docs for ways to control the relation names - you probably want 'query' rather than 'query_id' for e.g. -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http

Re: [Dbix-class] possible bug in DBIx::Class::Row

2009-05-13 Thread Matt S Trout
see what you mean. If you modify the code to set _rel_in_storage there, do any of the tests fail? -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.uk/catalyst/ Shadowcat Systems Limited mst

Re: [Dbix-class] dirty-flag on inflated columns

2009-05-12 Thread Matt S Trout
On Mon, May 11, 2009 at 12:14:07PM -0700, Marc Mims wrote: * Matt S Trout dbix-cl...@trout.me.uk [090511 10:29]: Thoughts on whether make_column_dirty should clear the deflated value if an inflated one is present, guys? That would break DBIx::Class::InflateColumn::FS, causing it to leave

Re: [Dbix-class] New user with JOIN problem

2009-05-12 Thread Matt S Trout
a look at what's in there. Then we can make a start at helping you - currently your database is too broken. -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.uk/catalyst/ Shadowcat Systems Limited mst

Re: [Dbix-class] Row object does not work correctly after thaw.

2009-05-11 Thread Matt S Trout
I'd consider it for core ... -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.uk/catalyst/ Shadowcat Systems Limited mst (@) shadowcat.co.ukhttp://shadowcat.co.uk/blog/matt-s-trout

Re: [Dbix-class] Using Test::TestCoverage v0.08 with DBIC v0.08102

2009-05-11 Thread Matt S Trout
generated methods so they get correctly recognised as methods in the class rather than imports. Once we go to Moose you'll be able to test $meta_method-isa('Class::MOP::Method::Generated') to exclude. But that's not true yet. Suggestions very much welcome. -- Matt S Trout Catalyst

Re: [Dbix-class] register_source() regression in 0.08102

2009-05-11 Thread Matt S Trout
. This is -not- a regression, it's DBIC learning to point out bugs in your code before they fuck over production :) -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.uk/catalyst/ Shadowcat Systems Limited mst

Re: [Dbix-class] relationships and custom search

2009-05-11 Thread Matt S Trout
the +columns / resultset method approach. Please get that part working first, then we can discuss how to make this work across relationship calls. -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.uk

Re: [Dbix-class] Need help with PgSQL fulltext search queries

2009-05-11 Thread Matt S Trout
for quoting: $search_text = $rs-result_source-schema-storage-dbh- quote($search_text); WRONG. \[] obsoletes that approach. The $search_text is passed as a bind value so no quoting should be required. You need to dig deeper to work out what's going on ... -- Matt S Trout

[Dbix-class] Who wants to be rid of the Unknown Error w/attributes bug on 5.10?

2009-05-11 Thread Matt S Trout
-smartmatch-tests/tree/master Here is a repo. Fork it. Try and break it. If you succeed, note how that break departs from the spec. Send pull requests to rjbs as often as you're sure is a good idea so he can keep everybody in sync. Go on. Go! GO GO GO GO GO! -- Matt S Trout

Re: [Dbix-class] DateTime Inflations for Timestamps

2009-05-05 Thread Matt S Trout
://dev.catalyst.perl.org/repos/bast/DBIx-Class/0.08/branches/oracle-tweaks/ Can our collected orrible users give this a quick check for sanity before we merge it please? -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http

Re: [Dbix-class] Designing a system with DBIx::Class

2009-05-02 Thread Matt S Trout
circular references created. But do apply Devel::Leak or Devel::LeakTrace or similar to double check you got it right. (and I hope now you're starting to see why we haven't tried to ship such a thing in core -yet- - it's a much trickier problem than it first appears ...) -- Matt S Trout

Re: [Dbix-class] Re: ResultSet columns attribute broken?

2009-05-01 Thread Matt S Trout
. Please see the previous discussion on this subject. -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.uk/catalyst/ Shadowcat Systems Limited mst (@) shadowcat.co.ukhttp://shadowcat.co.uk/blog

Re: [Dbix-class] Fw: Dynamism in a static model

2009-05-01 Thread Matt S Trout
the same code you would've printed. -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http://shadowcat.co.uk/catalyst/ Shadowcat Systems Limited mst (@) shadowcat.co.ukhttp://shadowcat.co.uk/blog/matt-s-trout

Re: [Dbix-class] Designing a system with DBIx::Class

2009-04-30 Thread Matt S Trout
/ hotel booking system - a small number of root classes and dozens of child classes all FKed up nicely, and the scoping stuff didn't get in our way at all. -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical Director and a commit bit: http

Re: [Dbix-class] Fw: Dynamism in a static model

2009-04-30 Thread Matt S Trout
is easy. Don't do that. generate the DBIx::Class class in memory, register it with your schema, re-connect the schema and then use $schema-deploy. It'll work fine. The problem is you're starting from the wrong end. -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue

Re: [Dbix-class] DateTime Inflations for Timestamps

2009-04-30 Thread Matt S Trout
that there were DateTime::Format:: modules that had separate timestamp support - in fact more accurately *I* didn't realise that at the time. Do the other Oracle users on here want to weigh in on this please? -- Matt S Trout Catalyst and DBIx::Class consultancy with a clue Technical

Re: [Dbix-class] DBIx::Class 0.08100 released to CPAN

2009-04-23 Thread Matt S Trout
On Wed, Apr 22, 2009 at 10:02:34AM -0700, David Ihnen wrote: Matt S Trout wrote: On Tue, Apr 21, 2009 at 10:59:48AM -0700, David Ihnen wrote: Which is why: -create_related('ivr_holiday', { holiday = date, description = $description }); is called. but does not create

Re: [Dbix-class] ANN - DBD::SQLite version 1.24_01 - amalgamation

2009-04-23 Thread Matt S Trout
it's out once it is and we'll see if I get bitched at by list members again :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development

Re: [Dbix-class] ANN - DBD::SQLite version 1.24_01 - amalgamation

2009-04-23 Thread Matt S Trout
unsubtle personally. HTH, HAND. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com

Re: [Dbix-class] DBIx::Class 0.08100 released to CPAN

2009-04-22 Thread Matt S Trout
-create_related('ivr_holiday', { holiday = date, description = $description, donor = undef }); That change is correct - as I say, DBIC can't tell what's going to be in the database so it errs on the side of paranoia. Better to die() than to silently return the wrong thing. -- Matt S Trout Need

Re: [Dbix-class] DBIx::Class 0.08100 released to CPAN

2009-04-21 Thread Matt S Trout
, but it resolves a lot of bugs, and only really makes existing bugs-in-potentia obvious rather than breaking code that was correct, so I'm not really willing to revert it entirely - does anybody have a suggestion for fixing the backcompat without re-bugging the other cases? -- Matt S Trout Need

Re: [Dbix-class] Insert or Update (was ANNOUNCE: 0.08099_08)

2009-04-20 Thread Matt S Trout
On Sun, Apr 19, 2009 at 11:49:29AM +0100, Peter Corlett wrote: On 19 Apr 2009, at 11:14, Matt S Trout wrote: Valid idea though, and something we should look at making a capability in storage for 09 - in the meantime I'd recommend rewriting it as a reusltset component just as people

Re: [Dbix-class] Insert or Update (was ANNOUNCE: 0.08099_08)

2009-04-19 Thread Matt S Trout
, and something we should look at making a capability in storage for 09 - in the meantime I'd recommend rewriting it as a reusltset component just as people already suggested, repeatedly. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

[Dbix-class] London Perl tutorials - 25th 26th February 2009 - day 2 includes Cat+DBIC

2009-01-21 Thread Matt S Trout
Munging with Perl (Manning, 2001) and a co-author of Perl Template Toolkit (O'Reilly, 2003). Dave lives in South West London. The rumours about gold-plated cats were never true. Each day starts at 09:30 - ends approx. 17:00 each day -- Matt S Trout Need help with your Catalyst

Re: [Dbix-class] svn trunk rev. 5064 - Insert fails when using load_namespaces

2008-11-15 Thread Matt S Trout
=HASH(0x8ab21d8) isn't a User at fails_at_insert.pl line 15 I think you're passing 'User' instead of 'DBSchema::Result::User' to a relationship definition somewhere. That's never worked properly. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical

Re: [Dbix-class] Restricting Result Sets

2008-11-15 Thread Matt S Trout
entry :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http

Re: [Dbix-class] (svn trunk version) Recursive insert and backward compatibility

2008-11-15 Thread Matt S Trout
to new() -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http

Re: [Dbix-class] Re: Class::Accessor::Grouped - how to use it?

2008-11-15 Thread Matt S Trout
. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http

Re: [Dbix-class] DBIC to DBD::Oracle UTF-8 placeholder checks

2008-11-15 Thread Matt S Trout
caching db library. Wrap _prep_for_execute? Factor _dbh_execute out a bit further to make this cleaner? I see no useful third option from a quick prod. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp

Re: [Dbix-class] is joining a table twice with nesting possible?

2008-11-13 Thread Matt S Trout
didn't try that combination. To sum up problem and solution, reverting to my actual case of images and dimensions, not the artists, cds, and albums trivial example. Maybe you could compact your explanation and turn it into a cookbook entry? -- Matt S Trout Need help with your

Re: [Dbix-class] Filtering module

2008-11-13 Thread Matt S Trout
. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk

Re: [Dbix-class] [PATCH] [BUGFIX] Don't die due to unrelated $@ values.

2008-11-13 Thread Matt S Trout
to the ticket and vice versa. Anyway, your patch is ... probably the wrong approach. The right approach would be to use Class::C3::Componentised::ensure_class_loaded instead. And a test would be nice, too :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project

Re: FW: [Dbix-class] Filtering module

2008-11-13 Thread Matt S Trout
get_column will simply go away so people don't keep making this mistake. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment

Re: [Dbix-class] joins -- Can't Handle this Yet?

2008-11-13 Thread Matt S Trout
/might_have/has_manyt/has_one -or- an add_relationship for any given rel, the first four are all convenience wrappers that call add_relationship for you - and the arguments are *not* the same to add_relationship and you haven't called it right. -- Matt S Trout Need help with your Catalyst

Re: [Dbix-class] DateTime personalization

2008-11-13 Thread Matt S Trout
-_inflate_datetime($type, $value, $colname); } or so - that way it can trivially be subclassed, rather than us continuing to shoehorn random features into the module that (while useful to many users) are just a performance hit for the many more that don't use them. Thoughts? Patches? :) -- Matt S

Re: [Dbix-class] Standing on the shoulders of giants

2008-11-12 Thread Matt S Trout
it more :) Also, please see http://www.shadowcat.co.uk/archive/conference-video/yapc-eu-2008/you-arent-good-enough/ for my view on the concept of not being good enough yet -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Dbix-class] bug in delete_all: CascadeActions::delete removes parent before children

2008-10-27 Thread Matt S Trout
be a warning for this in the next release. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com

Re: [Dbix-class] bug in delete_all: CascadeActions::delete removes parent before children

2008-10-27 Thread Matt S Trout
override in your row class such as: sub delete { my $self = shift; $self-related_things-delete; $self-next::method(@_); } A documentation patch to make this more clear would be very welcome. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Dbix-class] tinyint and enum mapping

2008-10-27 Thread Matt S Trout
been the limitation of 1 column and 1 attribute. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http

Re: [Dbix-class] Patch roundup time, again.

2008-10-14 Thread Matt S Trout
On Mon, Oct 06, 2008 at 02:07:19PM +0300, Oleg Kostyuk wrote: 2008/10/6 Matt S Trout [EMAIL PROTECTED]: Any outstanding patches, please send to this thread. What about my Feature proposal for DBIx::Class::Storage::DBI::connect_info ?.. You've still not sent a patch for it. All I've seen

Re: [Dbix-class] Patch roundup time, again.

2008-10-08 Thread Matt S Trout
it's in svn at all is for the (now vanishingly small) number of people patching DBIC who don't have SQL::Translator. Might actually just have Makefile.PL create it and drop the damn thing from svn entirely - thoughts people? -- Matt S Trout Need help with your Catalyst or DBIx::Class

Re: [Dbix-class] install test failures

2008-10-07 Thread Matt S Trout
and raised an RT report for it. The issue is that it has an undeclared dependency on having a recent version of Test::Warn. If you can send a patch to the roundup thread I'm sure somebody will apply it. There's no point in submitting to RT, it just generates extra work. -- Matt S Trout

Re: [Dbix-class] Probleme with nextval() and postgresql 7.4.17

2008-10-07 Thread Matt S Trout
you're running. Also please note it's DBIx::Class or DBIC, DBIx:: contains lots of other projects. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed

Re: [Dbix-class] DBIx::Class and Red Hat perl bugs and performance redux

2008-10-05 Thread Matt S Trout
so people know when it's safe to set the env var. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http

Re: [Dbix-class] DBIx::Class and Red Hat perl bugs and performance redux

2008-10-05 Thread Matt S Trout
On Sun, Oct 05, 2008 at 04:16:32PM +0100, Nigel Metheringham wrote: On 5 Oct 2008, at 12:00, Matt S Trout wrote: On Thu, Oct 02, 2008 at 02:34:10PM +0100, Nigel Metheringham wrote: DBIx::Class::StartupCheck - Both old and new perls trigger the startup check

Re: [Dbix-class] Re: DBIx::Class::ResultSet::RecursiveUpdate - announcement and RFC

2008-10-01 Thread Matt S Trout
On Wed, Oct 01, 2008 at 09:38:07AM +0200, Zbigniew Lukasiak wrote: On Wed, Oct 1, 2008 at 3:17 AM, Matt S Trout [EMAIL PROTECTED] wrote: On Tue, Sep 30, 2008 at 02:39:00PM +0200, Zbigniew Lukasiak wrote: On Tue, Sep 30, 2008 at 2:20 PM, Matt S Trout [EMAIL PROTECTED] wrote: On Tue, Sep 30

Re: [Dbix-class] RFC: InflateColumn::FS

2008-10-01 Thread Matt S Trout
-ident_values to get the PK values, IIRC. If this proves useful enough for inclusion in CPAN, it will be my first CPAN upload. A little mentoring would be appreciated. Either this is getting uploaded or we're finding a way to integrate it into core to replace ::File. -- Matt S Trout

Re: [Dbix-class] Re: DBIx::Class::ResultSet::RecursiveUpdate - announcement and RFC

2008-09-30 Thread Matt S Trout
agreed with me that this was a bug in FormFu. If your code still has this bug, I suggest you fix it. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed

Re: [Dbix-class] RecursiveUpdate and many to many

2008-09-30 Thread Matt S Trout
On Mon, Sep 29, 2008 at 05:39:25PM +0100, Pedro Melo wrote: Hi, On Sep 29, 2008, at 4:50 PM, Matt S Trout wrote: On Sun, Sep 28, 2008 at 05:56:11PM +0100, Oliver Gorwits wrote: Ideally, DBIC would instead populate the relationship_info details after someone has set up __PACKAGE__

[Dbix-class] Catalyst, DBIx::Class and Moose training in the UK

2008-09-30 Thread Matt S Trout
to this mail with comments) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com

Re: [Dbix-class] Can people please poke trunk

2008-09-30 Thread Matt S Trout
On Mon, Sep 29, 2008 at 07:01:49PM +0200, Zbigniew Lukasiak wrote: On Mon, Sep 29, 2008 at 6:49 PM, Matt S Trout [EMAIL PROTECTED] wrote: Ah. it appears I've cocked up has_manys. Could you re-send the test patch please? Here it is. Thanks. Fixed now. -- Matt S Trout Need

Re: [Dbix-class] Re: DBIx::Class::ResultSet::RecursiveUpdate - announcement and RFC

2008-09-30 Thread Matt S Trout
On Tue, Sep 30, 2008 at 02:39:00PM +0200, Zbigniew Lukasiak wrote: On Tue, Sep 30, 2008 at 2:20 PM, Matt S Trout [EMAIL PROTECTED] wrote: On Tue, Sep 30, 2008 at 09:28:50AM +0200, Zbigniew Lukasiak wrote: The tricky part is when you load data from the form into the new row. You need

Re: [Dbix-class] RecursiveUpdate and many to many

2008-09-30 Thread Matt S Trout
for this as soon as 08100 goes into release cycle properly, which should be pretty soon now. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development

Re: [Dbix-class] RecursiveUpdate and many to many

2008-09-29 Thread Matt S Trout
. If you can't JOIN it in a single clause, it's not a relationship. Period. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development

Re: [Dbix-class] Can people please poke trunk

2008-09-29 Thread Matt S Trout
On Sun, Sep 28, 2008 at 08:28:54PM +0200, Zbigniew Lukasiak wrote: On Sun, Sep 28, 2008 at 6:09 PM, Matt S Trout [EMAIL PROTECTED] wrote: I think I've now got the new_related/etc. snarl resolved, so can anybody who's interested in this (zby especially :) please poke trunk and see

Re: [Dbix-class] DBIx::Class::ResultSet::RecursiveUpdate - announcement and RFC

2008-09-28 Thread Matt S Trout
On Sat, Sep 27, 2008 at 07:52:35PM +0200, Zbigniew Lukasiak wrote: Hi Matt, On Sat, Sep 27, 2008 at 6:50 PM, Matt S Trout [EMAIL PROTECTED] wrote: On Tue, Sep 23, 2008 at 01:35:03PM +0200, Zbigniew Lukasiak wrote: Unlike the original update_or_create - recursive_update works for tables

Re: [Dbix-class] RecursiveUpdate and many to many

2008-09-28 Thread Matt S Trout
On Sat, Sep 27, 2008 at 09:19:06PM +0200, Zbigniew Lukasiak wrote: On Sat, Sep 27, 2008 at 8:59 PM, Matt S Trout [EMAIL PROTECTED] wrote: On Sat, Sep 27, 2008 at 09:54:44AM +0200, Zbigniew Lukasiak wrote: Hi Matt, I would like to include your critisizm of the support for many to many

[Dbix-class] Can people please poke trunk

2008-09-28 Thread Matt S Trout
through being busy fighting this snarl, then I think we're into 08100 release cycle time. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed

Re: [Dbix-class] Patch and test for failing with timezone and datetime_undef_if_invalid

2008-09-27 Thread Matt S Trout
going through this on IRC, a slightly modified version of the patch was applied. Thanks! -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed

Re: [Dbix-class] RHEL / CentOS performance finally fixed?

2008-09-27 Thread Matt S Trout
how to update StartupCheck please? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http

Re: [Dbix-class] Overloads in ResultSet and Stacktraces

2008-09-27 Thread Matt S Trout
::StrVal, with tests (2) Patching StackTrace to -not- respect overloading by default, with an option to turn it back on. First patch should come here, second one should go to catalyst-dev. I'll happily pick up both, -provided- they turn up with tests :) -- Matt S Trout Need help

Re: [Dbix-class] DBIx::Class::ResultSet::RecursiveUpdate - announcement and RFC

2008-09-27 Thread Matt S Trout
On Tue, Sep 23, 2008 at 01:35:03PM +0200, Zbigniew Lukasiak wrote: Unlike the original update_or_create - recursive_update works for tables with auto_increment primary keys Please stop referring to doesn't accept undef for auto-inc like MySQL does as broken. -- Matt S Trout Need

Re: [Dbix-class] Missing support for ENUM in SQL::Translator::Parser::PostgreSQL.pm

2008-09-27 Thread Matt S Trout
:) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http

Re: [Dbix-class] Problems with belongs_to/might_have on columns with null values.

2008-09-27 Thread Matt S Trout
Please test against trunk before reporting problems; this is already fixed. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk

Re: [Dbix-class] Cookbook bug

2008-09-27 Thread Matt S Trout
is poisoned and your normal resultsource maps to the complex resultsource when using the full class name. Are you sure this isn't already fixed in trunk? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp

Re: [Dbix-class] DBIx-Class-ResultSet-AdvancedWebSearch

2008-09-27 Thread Matt S Trout
component / resultset class. Shouldn't it more be an adaptor that sits between a resultset and a web environment? This smells like hey, I've got this point where I can extend stuff, let's extend it here which is how we got the mess that is the Catalyst::Plugin::* namespace. -- Matt S Trout

Re: [Dbix-class] RecursiveUpdate and many to many

2008-09-27 Thread Matt S Trout
, then you should make it (a) optional (b) off by default since it can't currently be done safely, and anything non-safe in code that's designed to talk to your production DB is -bad-. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Dbix-class] Issue with DBIx::Class::TimeStamp

2008-09-24 Thread Matt S Trout
better! Which is what you should have submitted in the first place. I found a bug so instead of fixing the bug I completely reverted the module to an older version is just stupid. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Dbix-class] Creating a new related object on another new object (with a belongs_to relationship)

2008-09-03 Thread Matt S Trout
don't know if can work sanely. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com

Re: [Dbix-class] Feature proposal for DBIx::Class::Storage::DBI::connect_info

2008-08-27 Thread Matt S Trout
prefer. List good. Many people on here with useful ideas. If I thought there was pollution, I'd create a -dev list like catalyst has, but I haven't felt the need to yet. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp

Re: [Dbix-class] DBIx::Class::Client

2008-08-26 Thread Matt S Trout
like to submit patches to dbicadmin, I'd love to have them - and factoring out that code into DBIx::Class::Script::Admin so you can extend it easily would be awesome. But I'm not sure I see the need for a duplicate with a slightly different API? -- Matt S Trout Need help with your

Re: [Dbix-class] Feature proposal for DBIx::Class::Storage::DBI::connect_info

2008-08-26 Thread Matt S Trout
([{}])) - just a side effect. Well, if the patch is only designed for Catalyst, why didn't you write it against Catalyst::Model::DBIC::Schema? Not that I don't want the feature in DBIC, but I'm just saying :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project

Re: [Dbix-class] DBIx::Class::Client

2008-08-26 Thread Matt S Trout
powerful stuff) that it can be bolted onto your existing code quicker? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-25 Thread Matt S Trout
try and figure out what the common factor is? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http

Re: [Dbix-class] Integration with Moose (DBIx-enabled Moose objects)?

2008-08-25 Thread Matt S Trout
surprised that it hasn't really been asked yet--like the answer should be blatantly obvious, but I've stared at the problem for too long. I hope the above clears things up a bit. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Dbix-class] Unexpected behavior with possible NULL foreign key relationship

2008-08-25 Thread Matt S Trout
-- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk

Re: [Dbix-class] Race condition in find_or_create()

2008-08-24 Thread Matt S Trout
() call inside DBIx::Class::Storage::DBI's _execute() method with an eval{}. 3. Afterwards check $@ and, if applicable, utilize _parse_error() to create the standardized exception. Doesn't storage go via $self-throw_exception ? If so you could put the parsing in there. -- Matt S Trout

Re: [Dbix-class] Unexpected behavior with possible NULL foreign key relationship

2008-08-24 Thread Matt S Trout
for anybody who's interested in following along. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http

Re: [Dbix-class] DBIC hits DB thoguh using prefetch (repost)

2008-08-24 Thread Matt S Trout
relationships on uninserted objects first. I've intentionally left your message marked unread so I don't forget about it though. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd

Re: [Dbix-class] multiple has_many rels in prefetch not supported in 0.081?

2008-08-22 Thread Matt S Trout
code that -did- work correctly and is now hitting an exception, please write an example test and we'll disable the exception for that case. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst

Re: [Dbix-class] DBD::Sybase - Can't call ping() with active statement handles - any ideas?

2008-08-22 Thread Matt S Trout
/perl5/site_perl/5.8.8/DBIx/Class/Schema.pm line 954 Your DBD::Sybase's ping() method is broken. If you can't get a working DBD::Sybase build I suggest you try ODBC instead. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Dbix-class] Extending a schema after instanciating it

2008-08-18 Thread Matt S Trout
or (b) do my $new_schema = My::Schema-clone; $new_schema-storage($old_schema-storage); and use $new_schema from then on (or at least utnil you need to modify My::Schema again) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Director

Re: [Dbix-class] Subquery overhead with slice()

2008-08-17 Thread Matt S Trout
on there though other people may be more useful depending what you're asking :). -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development

Re: [Dbix-class] Components, overrides, and method call ordering

2008-08-17 Thread Matt S Trout
overrides to happen before B's, make sure A is first in @ISA. If A already depends on B, just have it subclass B and then you're guaranteed. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst

Re: [Dbix-class] get_inflated_columns and selecting specific columns

2008-08-17 Thread Matt S Trout
for all the columns in the table. Of course, the value will beundef for any columns that weren't actually selected. Is this the intended behavior? It isn't clear to me from the documentation. Probably not. Patches welcome. -- Matt S Trout Need help with your Catalyst or DBIx

Re: [Dbix-class] having attribute problems with SQLite

2008-08-07 Thread Matt S Trout
seen it in my life. I'd be writing a plain DBI script to check it and then running that against other DBs. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want

Re: [Dbix-class] Subquery overhead with slice()

2008-08-07 Thread Matt S Trout
. I'd love to see a patch that detects if it can optimise this and does so though. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development

Re: [Dbix-class] Race condition in find_or_create()

2008-08-03 Thread Matt S Trout
we know what the feature entails, -then- we go annoy Mr. Bunce to add something to DBI and start bugging DBD maintainers to support it. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst

Re: [Dbix-class] Configuration query - Catalyst::Model::DBIC::Schema

2008-08-03 Thread Matt S Trout
to fix that for the next newbie with the same sort of thought process as you. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment

Re: [Dbix-class] DBIx::Class::ResultSet / resolve_prefetch() / Use of uninitialized value in pattern match

2008-07-31 Thread Matt S Trout
On Wed, Jul 30, 2008 at 11:17:59AM +0100, Chisel Wright wrote: On Wed, Jul 30, 2008 at 10:52:49AM +0100, Matt S Trout wrote: Right, but is it a bug that we don't make undef alias become '' or is it a bug that we don't die on it? Assuming there's nothing using it in undef mode I think

Re: [Dbix-class] Configuration query - Catalyst::Model::DBIC::Schema

2008-07-31 Thread Matt S Trout
On Wed, Jul 30, 2008 at 03:50:40PM +0100, Dermot wrote: 2008/7/30 Matt S Trout [EMAIL PROTECTED]: On Tue, Jul 29, 2008 at 09:15:42AM +0100, Dermot wrote: 2008/7/28 Matt S Trout [EMAIL PROTECTED]: I don't want to stray off the topic. I used that explains __HOME__ versus path_to

Re: [Dbix-class] DBIx::Class::ResultSet / resolve_prefetch() / Use of uninitialized value in pattern match

2008-07-30 Thread Matt S Trout
On Tue, Jul 29, 2008 at 11:05:59AM +0100, Chisel Wright wrote: On Tue, Jul 29, 2008 at 10:41:31AM +0100, Matt S Trout wrote: On Mon, Jun 30, 2008 at 11:49:58PM +0100, Chisel Wright wrote: Hi all, I noticed a problem with DBIx::Class::ResultSource::resolve_prefetch() a while back

Re: [Dbix-class] Configuration query - Catalyst::Model::DBIC::Schema

2008-07-30 Thread Matt S Trout
On Tue, Jul 29, 2008 at 09:15:42AM +0100, Dermot wrote: 2008/7/28 Matt S Trout [EMAIL PROTECTED]: On Mon, Jul 28, 2008 at 02:02:04PM +0100, Peter Flanigan wrote: Dermot wrote: I don't want to hard-code the path to the SQLite file but unless I do I am getting DBI Connection failed: unable

Re: [Dbix-class] What would cause has_many relation accessor to query and return objects using the wrong table/class ?

2008-07-30 Thread Matt S Trout
On Tue, Jul 29, 2008 at 11:21:30AM +0100, Aaron Trevena wrote: 2008/7/28 Matt S Trout [EMAIL PROTECTED]: On Mon, Jul 28, 2008 at 03:49:16PM +0100, Aaron Trevena wrote: Hi All, I have a peculiar problem. I've defined a bunch of has_many relations, but when I call them an object

Re: [Dbix-class] DBIx::Class::ResultSet / resolve_prefetch() / Use of uninitialized value in pattern match

2008-07-29 Thread Matt S Trout
get the wrong method name or is it something external? -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http

Re: [Dbix-class] DBIC hits DB thoguh using prefetch (repost)

2008-07-28 Thread Matt S Trout
a TODO one in the code. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com

Re: [Dbix-class] Re: Tests for MySQL's illustrious 0000-00-00

2008-07-28 Thread Matt S Trout
use the broken mysql feature. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com

Re: [Dbix-class] Re: Tests for MySQL's illustrious 0000-00-00

2008-07-28 Thread Matt S Trout
be moved to another database engine anyway. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http

Re: [Dbix-class] Configuration query - Catalyst::Model::DBIC::Schema

2008-07-28 Thread Matt S Trout
global class data with that information. And the feature's already there to do what you need, anyway - see Charlie Garrison's post for how you -should- be doing it. -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp

<    1   2   3   4   >