Browse Source

simplified SP

master
Pascal Gloor 5 years ago
parent
commit
e705557fd3
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      cgi/autodoc.fcgi

+ 2
- 1
cgi/autodoc.fcgi View File

my @out; my @out;


my $q = sqlquery($dbh, "SELECT id FROM documents WHERE id IN (CALL get_document_filter(?)) LIMIT ?,?",
my $q = sqlquery($dbh, "CALL get_document_filter(?,?,?,?)",
exists $qs->{filter} ? $qs->{filter} : undef, exists $qs->{filter} ? $qs->{filter} : undef,
exists $qs->{tags} ? $qs->{tags} : undef,
$qs->{pageSize} * $qs->{pageIndex}, $qs->{pageSize} * $qs->{pageIndex},
$qs->{pageSize}); $qs->{pageSize});
while(my ($id) = $q->fetchrow_array()) { while(my ($id) = $q->fetchrow_array()) {

Loading…
Cancel
Save