On Tue, May 11, 2010 at 12:15 PM, Peter Rabbitson
<[email protected]<rabbit%[email protected]>
> wrote:
> Remember DBIC is correct first and fast only afterwards. This is far from
> the
> only "lowest common denominator" reduction in the code, but we currently
> still
> have trouble to test multiple databases. Work is being done on that front
> but it is sadly slow.
>
Just so I'm clear, the comment you referenced says:
# some databases (sqlite) are dumb and can not do a blanket
# increment/decrement. So what we do here is check if the
# position column is part of a unique constraint, and do a
# one-by-one update if this is the case
Is this the "blanket increment/decrement" that's referring to?
sqlite> update track set pos = pos - 1 where cd = 1 and pos > 2;
--
Bill Moseley
[email protected]
_______________________________________________
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/[email protected]