FAQ  •  Register  •  Login

Add property for sql limit clause

<<

drungrin

Serviio newbie

Posts: 9

Joined: Wed Jan 08, 2014 4:41 pm

Post Wed Jan 08, 2014 5:21 pm

Add property for sql limit clause

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.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Mon Jan 13, 2014 5:55 am

Re: Add property for sql limit clause

please create a ticket on Bitbucket and add all the needed changes there.
<<

drungrin

Serviio newbie

Posts: 9

Joined: Wed Jan 08, 2014 4:41 pm

Post Thu Jan 16, 2014 1:28 pm

Re: Add property for sql limit clause

Filled as Issue #750

Working as a charm on my box.

Return to Feature requests

Who is online

Users browsing this forum: No registered users and 26 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.