Changeset 13 in bookmarks for trunk/Bookmarks.pm
- Timestamp:
- 01/19/13 17:16:14 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Bookmarks.pm
r9 r13 38 38 my $tag = $params->{tag}; 39 39 my $limit = $params->{limit}; 40 my $offset = $params->{offset}; 40 41 41 42 my ($sql, @bind) = sql_interp( … … 43 44 ($tag ? ('join tags on resources.uri = tags.uri where tags.tag =', \$tag) : ''), 44 45 'order by ctime desc', 45 ($limit ? ('limit', \$limit) : ''), 46 ($limit ? ('limit', \$limit) : ()), 47 # an offset is only allowed if we have a limit clause 48 ($limit && $offset ? ('offset', \$offset) : ()), 46 49 ); 47 50
Note: See TracChangeset
for help on using the changeset viewer.