Grokbase
Topics Posts Groups | in
x
[ help ]

Matt S Trout (dbix-...@trout.me.uk)

Profile | Posts (2029)

User Information

Display Name:Matt S Trout
Partial Email Address:dbix-...@trout.me.uk
Posts:
2029 total
101 in Catalyst Framework Development
5 in catalyst-dev@lists.scsys.co.uk
835 in Catalyst Framework
35 in catalyst@lists.scsys.co.uk
59 in Class::DBI
915 in DBIx::Class
96 in dbix-class@lists.scsys.co.uk
2 in Dojo Tookit
10 in PostgreSQL - General

5 Most Recent

All Posts
1) Matt S Trout Re: syntax for macros / function composition at compile time
| +1 vote
That's not what attributes do though, they call a class method at a random point when the sub...
Perl 5 Porters
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Thu, Nov 06, 2008 at 04:59:41AM -0800, Michael G Schwern wrote:
> I still say subroutine attributes are the way. That's the syntax for
> attaching things to a subroutine in Perl 5. I'd make a decorate() attribute
> and pass it the decorators.

That's not what attributes do though, they call a class method at a random
point when the sub doesn't have a name yet and then you do a crazy dance to
try and do something useful with them.

We hates attributes, we do.

> sub incr : decorate(memoize, log($file)) {
>     $_[0] + 1;
> }

Meh. How about

memoized logged (to => $file) sub incr (Int $i) {
  $i + 1;
}

?

We can certainly decorate 'method' like that. Not sure if it's possible
with sub; when rafl took over trying to make sub signatures work I kind of
forgot most of what little I'd worked out about how 'sub' is parsed in
statement form.

Better still, how about we shift off to the perl5-syntax list and stop
bothering p5p until we have something worth shoving into core? :)

--
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
2) Matt S Trout [Dbix-class] Patch roundup time, again.
| +1 vote
Other than the bigass diff to sqlite.sql, is there anything left to do here? If not, lob me an...
dbix-class@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Mon, Oct 06, 2008 at 12:10:42AM +0200, Jens Gassmann wrote:
> Hi,
>
> >Any outstanding patches, please send to this thread. Can somebody also
> >go through rt.cpan.org and work out if there's anything on there we need
> >to apply as well?
>
> attached the test and patch for DBIx::Class::InflateColumn::Datetime

Other than the bigass diff to sqlite.sql, is there anything left to do here?

If not, lob me an htpasswd line and I'll set you up to commit this.

> The recreation of the test-schema generates many changes - many more
> then my :-(

Diffs against sqlite.sql are irrelevant - the only reason 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 project?
Technical Director http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
3) Matt S Trout [Dbix-class] Probleme with nextval() and postgresql 7.4.17
| +1 vote
DBIC_TRACE=1 perl myscript.pl and see what queries you're running. Also please note it's...
dbix-class@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Tue, Oct 07, 2008 at 10:54:30AM +0200, Ludovic Legrand wrote:
> hi,
> I want to select the nextval of the sequence 'seq_id_comparison' of the
> table 'Comparison' with this line:
>
> $dbh->resultset('Comparison')->search(undef, {
> select => "nextval('seq_id_comparison')",
>       as => 'id_comp',
>       })->single->get_column('id_comp');
> SQL equivalent:
> SELECT NEXTVAL('seq_id_comparison');
>
> The SQL statement gives last_value + 1, that's ok, while the DBIx
> request gives something like last_value + 500 ...
> How to explain this increment ?

DBIC_TRACE=1 perl myscript.pl

and see what queries 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 Director http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
4) Matt S Trout [Dbix-class] install test failures
| +1 vote
If you can send a patch to the roundup thread I'm sure somebody will apply it. There's no point in...
dbix-class@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Tue, Oct 07, 2008 at 11:57:56AM +0100, Dave Howorth wrote:
> Dave Howorth wrote:
> > Can anybody help me track down my test failures, please?
> >
> > Hopefully it's me being silly but if not, I'd like to make an RT report
> > before release.
>
> OK, I've tracked down the problem with t/61findnot.t 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       Need help with your Catalyst or DBIx::Class project?
Technical Director http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/ http://www.shadowcat.co.uk/servers/
5) Matt S Trout [Dbix-class] Patch roundup time, again.
| +1 vote
last_insert_rowid is a sqliteism I put in in the very early days, expecting it to go away by like...
dbix-class@lists.scsys.co.uk
[ Profile | Reply to group ] [ Flat  Thread  Threaded ]
On Sun, Oct 05, 2008 at 02:43:21PM -0700, Marc Mims wrote:
> * Matt S Trout <dbix-class@trout.me.uk> [081005 14:30]:
> > Can somebody also go through rt.cpan.org and work out if there's
> > anything on there we need to apply as well?
>
> I can provide a patch to close RT #21260: Problem with last_insert_rowid:
> http://lists.scsys.co.uk/pipermail/dbix-class/2008-October/006843.html
>
> I would do so by adding a warning to _rebless if the backend can't be
> determined or if there is no DBIC extension for it then punting with a
> DBI call to last_insert_id, passing the table and column.

last_insert_rowid is a sqliteism I put in in the very early days, expecting
it to go away by like 0.03.

last_insert_id is the DBI standard, which theoretically should just work.

Just commit the damn fix.

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

spacer
Profile | Posts (2029)
Home > People > Matt S Trout