Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#1 2018-07-02 13:43:51

aguiral
Member
Registered: 2017-11-30

MariaDB behaviour

Hello,

as far as I have experienced, mariadb and subqueries behaviour are noticeably different from other databases.

Please check this document

https://drive.google.com/file/d/1aFjN33 … sp=sharing

where I have tried to explain mariadb 'order by' behaviour.

Knowing that, is it possible to set up/trick ReportServer to transpose the 'order by ' clause to the outer query statement ?

Regards

Alfredo

Offline

#2 2018-07-02 13:50:57

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: MariaDB behaviour

Hi Alfredo,

check here: https://reportserver.net/en/guides/user … mic-Lists/
6.3. Alias, Sorting and Hidden Columns

You can easily select the columns you want to sort by in the list configuration.

Regards,
Eduardo

Offline

#3 2018-07-02 13:58:48

aguiral
Member
Registered: 2017-11-30

Re: MariaDB behaviour

Hi Eduardo,

thanks for your quick answer but I'm afraid that a 'normal' sort action for dynamic list does not work.

It is due to the 'special' way of manage subqueries of mariaDB engine :

https://mariadb.com/kb/en/library/why-i … y-ignored/

Cheers

Alfredo

Offline

#4 2018-07-02 14:08:03

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: MariaDB behaviour

Hi Alfredo,

when you create a dynamic list and sort it using ReportServer functionality, your sorting fields will not get in the inner query.
Don't write in your query: " order by 1 desc". This is, as you discovered, not reliable, not only in MariaDB.

Use reportserver's "sort by" functionality. Again, check here: https://reportserver.net/en/guides/user … mic-Lists/
Section 6.3. Alias, Sorting and Hidden Columns

"The order of records in the final report can be changed by selecting an order for individual columns (under "order"). If an order is configured for more than one column, the order of the earlier column is obeyed first."

Regards,
Eduardo

Offline

#5 2018-07-02 15:34:42

aguiral
Member
Registered: 2017-11-30

Re: MariaDB behaviour

Hi Eduardo,

perhaps I'm not understanding you but no success ...

Check, if possible, my shared document upstream (I have updated it, see page 2)

Thanks indeed

Alfredo

Offline

#6 2018-07-03 06:40:05

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: MariaDB behaviour

Hi Alfredo,

thank you for your updates. We will look into this.

Regards,
Eduardo

Offline

#7 2018-07-03 06:51:21

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: MariaDB behaviour

Hi Alfredo,

fyi, I raised ticket RS-2959 for this.

Regards,
Eduardo

Offline

#8 2018-07-03 06:57:09

aguiral
Member
Registered: 2017-11-30

Re: MariaDB behaviour

Thanks a lot Eduardo.

Offline

Board footer

Powered by FluxBB