#29548: Add official support for MariaDB
-------------------------------------+-------------------------------------
     Reporter:  Tim Graham           |                    Owner:  nobody
         Type:  New feature          |                   Status:  new
    Component:  Database layer       |                  Version:  master
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by Tom Forbes):

 PR for window function failures:
 https://github.com/django/django/pull/10228

 I've not had much experience with window expressions, but after doing some
 exploration it seems MariaDB has a few annoying quirks. Firstly the
 results of a query that uses window functions are not implicitly ordered,
 so the ordering has to be repeated. All examples in the MariaDB KB show
 this: https://mariadb.com/kb/en/library/window-functions-overview/. For
 these tests I just added a conditional `.order()` call if it's MariaDB.

 Secondly 'RANGE' frames have a limitation that's not present in other
 databases (https://jira.mariadb.org/browse/MDEV-11747). For this I just
 adapted the test to work around this limitation.

 And lastly `LEAD` and `LAG` have no `default` parameter
 (https://jira.mariadb.org/browse/MDEV-12981). I just skipped these tests.

 The PR needs more work done before it's ready, but if I don't have time I
 thought I would share what I've got so far for anyone else to pick up.
 Tests pass locally with MariaDB 10.3.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29548#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.87c90f572e80b1d31b0399d015d354d9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to