Re: MySQL SQL extensions to standard - REPLACE AND INSERT ON DUPLICATE KEY UPDATE

2011-05-22 Thread FractalizeR
Thanks ;)


Re: MySQL SQL extensions to standard - REPLACE AND INSERT ON DUPLICATE KEY UPDATE

2011-05-22 Thread Lukas Eder
Hi Vladislav

> Those are MySQL-specific extensions. I'm planning to add support for
> the SQL:2003/2008 standard MERGE INTO clause:
> http://sourceforge.net/apps/trac/jooq/ticket/486
>
> Once that has been established for those RDBMS that support it, I'll
> try to map the MERGE statement to any proprietary variants, such as
> the one you mentioned. Today, I don't think you can do it with jOOQ.

I have decided that a mapping of the SQL:2008 standard MERGE statement
onto the MySQL variant doesn't make sense. While they produce similar
behaviour, they work quite differently. MySQL's ON DUPLICATE KEY
UPDATE clause is much more concise but also less flexible. It might be
easier to implement an ON DUPLICATE KEY UPDATE clause and map that to
a MERGE statement for other dialects, since I have all KEY information
in jOOQ to form the MERGE statement's USING clause.

So here's the ticket for 1.6.0 to support MySQL's ON DUPLICATE KEY
UPDATE clause explicitly:
https://sourceforge.net/apps/trac/jooq/ticket/541

Cheers
Lukas


Re: MySQL SQL extensions to standard - REPLACE AND INSERT ON DUPLICATE KEY UPDATE

2011-05-07 Thread FractalizeR
Ok, thanks.


Re: MySQL SQL extensions to standard - REPLACE AND INSERT ON DUPLICATE KEY UPDATE

2011-05-07 Thread Lukas Eder
Hi there,

Those are MySQL-specific extensions. I'm planning to add support for
the SQL:2003/2008 standard MERGE INTO clause:
http://sourceforge.net/apps/trac/jooq/ticket/486

Once that has been established for those RDBMS that support it, I'll
try to map the MERGE statement to any proprietary variants, such as
the one you mentioned. Today, I don't think you can do it with jOOQ.

Cheers
Lukas

2011/5/7 FractalizeR :
> Hello.
>
> There is a number of MySQL extensions to standard like REPLACE and INSERT ON
> DUPLICATE KEY UPDATE
>
> Is there a way to do them in jooq?
>