mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-29 08:45:59 +01:00
Fix SQL statement
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
This commit is contained in:
parent
39cdfdb99a
commit
39b54cddb3
1 changed files with 1 additions and 1 deletions
|
@ -766,7 +766,7 @@ sqlite_get_recent_files(zathura_database_t* db, int max, const char* basepath)
|
|||
static const char SQL_HISTORY_GET[] =
|
||||
"SELECT file FROM fileinfo ORDER BY time DESC LIMIT ?";
|
||||
static const char SQL_HISTORY_GET_WITH_BASEPATH[] =
|
||||
"SELECT file FROM fileinfo WHERE file LIKE '?%' ORDER BY time DESC LIMIT ?";
|
||||
"SELECT file FROM fileinfo WHERE file LIKE ? || '%' ORDER BY time DESC LIMIT ?";
|
||||
|
||||
zathura_sqldatabase_private_t* priv = ZATHURA_SQLDATABASE_GET_PRIVATE(db);
|
||||
sqlite3_stmt* stmt = prepare_statement(priv->session, basepath == NULL ? SQL_HISTORY_GET : SQL_HISTORY_GET_WITH_BASEPATH);
|
||||
|
|
Loading…
Reference in a new issue