On Thu, May 6, 2010 at 16:35, Matt S Trout <[email protected]> wrote:
> On Wed, May 05, 2010 at 12:24:18PM +0200, Peter Rabbitson wrote:
>> > Whereas I was expecting SQL like:
>> > UPDATE foo me JOIN ( bars bar ON bars.id = me.bar_id ) SET me.exported =
>> > 1 WHERE ( me.exported = 0 AND bar.state = 'WA' )
>> >
>>
>> Newer versions address this issue, albeit not with the SQL you proposed
>> (I am not aware of any RDBMS which will execute the above sanely - i.e.
>> *really* restrict the update-able set with the join). In any case -
>> simply upgrade.
>
> It's called PostgreSQL. Here's a dollar, MySQL boy, get yourself a real
> database.

MySQL will allow updates on joins in exactly that fashion and with
that exact SQL.

Here's your F**ing dollar back, PG-boi. :)

Rob

_______________________________________________
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]

Reply via email to