-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in exporting library to bibtex #51
Comments
Thank you for your report. This message might be caused by a limit of 999 variables in SQLite. I will need to see the full error message to track the cause, because I can't reproduce this with even much higher number of items. |
Hi, thank you for your reply. Where can I find the full error message? |
Background https://www.sqlite.org/limits.html
Bug went unnoticed, because the Ubuntu compiled Sqlite3 overrides the default SQLITE_MAX_VARIABLE_NUMBER to 250,000. Bugged code The issue is caused by \LibrarianApp\ItemsModel::itemData() // Item placeholder.
$item_placeholders = array_fill(0, count($item_ids), '?');
$item_placeholder = join(',', $item_placeholders); When the number of Similar issue can be found in: \LibrarianApp\TagsModel::_getItemTags() // List of recommended tags.
$columns = str_word_count($abstract, 1);
$placeholder_arr = array_fill(0, count($columns), '?');
$placeholders = join(',', $placeholder_arr); |
Hi there, |
Hi,
I want to export my library to a bibtex file. I go to library view, press "export" and select "bibtex" and "download file" and I get the following error:
Database error: SQLSTATE[HY000]: General error: 1 too many SQL variables.
My library has currently 1211 items and my configuration: I,Librarian 5.7.1, PHP 7.3.25, SQLite 3.29.0
The text was updated successfully, but these errors were encountered: