Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
pwmt
zathura
Commits
39b54cdd
Commit
39b54cdd
authored
May 02, 2017
by
Sebastian Ramacher
Browse files
Fix SQL statement
Signed-off-by:
Sebastian Ramacher
<
sebastian+dev@ramacher.at
>
parent
39cdfdb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
zathura/database-sqlite.c
View file @
39b54cdd
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment