Page 1 of 1

Add property for sql limit clause

PostPosted: Wed Jan 08, 2014 5:21 pm
by drungrin
Hi,

Can you parametrize the "FETCH FIRST 1 ROWS ONLY" of the DAO classes (org.serviio.library.dao) so I can replace it with "LIMIT 1" and my mysql edit works fine?

(I reversed it for my own usage, but I want to pay to use the mobile features and keep it updated).

You can add a property on serviio.properties to use the limit, like (default):

limit_statment=FETCH FIRST %d ROWS ONLY

and I can change to:

limit_statment=LIMIT %d

So I can use viewtopic.php?f=6&t=15531 without reverse engineering.

EDIT: CURRENT TIMESTAMP also should have a property. Updating as I get more issues.

Re: Add property for sql limit clause

PostPosted: Mon Jan 13, 2014 5:55 am
by zip
please create a ticket on Bitbucket and add all the needed changes there.

Re: Add property for sql limit clause

PostPosted: Thu Jan 16, 2014 1:28 pm
by drungrin
Filled as Issue #750

Working as a charm on my box.