Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zathura
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages
Packages
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jeremie Knuesel
zathura
Commits
32dfdc0d
Commit
32dfdc0d
authored
Jan 20, 2019
by
Sebastian Ramacher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check if ALTER is supported
parent
797535ac
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
README
README
+1
-1
meson.build
meson.build
+1
-1
zathura/database-sqlite.c
zathura/database-sqlite.c
+7
-0
No files found.
README
View file @
32dfdc0d
...
@@ -15,7 +15,7 @@ The following dependencies are required:
...
@@ -15,7 +15,7 @@ The following dependencies are required:
The following dependencies are optional:
The following dependencies are optional:
* sqlite3 (>= 3.
5.9
): splite3 database backend
* sqlite3 (>= 3.
6.23
): splite3 database backend
* libmagic from file(1): for mime-type detection
* libmagic from file(1): for mime-type detection
* libsynctex from TeXLive: SyncTeX support
* libsynctex from TeXLive: SyncTeX support
* libseccomp: sandbox support
* libseccomp: sandbox support
...
...
meson.build
View file @
32dfdc0d
...
@@ -68,7 +68,7 @@ flags = cc.get_supported_arguments(flags)
...
@@ -68,7 +68,7 @@ flags = cc.get_supported_arguments(flags)
# optional dependencies
# optional dependencies
additional_sources = []
additional_sources = []
sqlite = dependency('sqlite3', version: '>=3.
5.9
', required: get_option('sqlite'))
sqlite = dependency('sqlite3', version: '>=3.
6.23
', required: get_option('sqlite'))
synctex = dependency('synctex', required: get_option('synctex'))
synctex = dependency('synctex', required: get_option('synctex'))
magic = cc.find_library('magic', required: get_option('magic'))
magic = cc.find_library('magic', required: get_option('magic'))
seccomp = dependency('libseccomp', required: get_option('seccomp'))
seccomp = dependency('libseccomp', required: get_option('seccomp'))
...
...
zathura/database-sqlite.c
View file @
32dfdc0d
...
@@ -251,6 +251,13 @@ sqlite_db_check_layout(sqlite3* session, const int database_version, const bool
...
@@ -251,6 +251,13 @@ sqlite_db_check_layout(sqlite3* session, const int database_version, const bool
if
(
new_db
==
true
)
if
(
new_db
==
true
)
return
;
return
;
#ifndef SQLITE_OMIT_COMPILEOPTION_DIAGS
if
(
sqlite3_compileoption_used
(
"SQLITE_OMIT_ALTERTABLE"
)
==
1
)
{
girara_error
(
"sqlite3 built without support for ALTER, cannot update database"
);
return
;
}
#endif
bool
all_updates_ok
=
true
;
bool
all_updates_ok
=
true
;
if
(
database_version
<
1
)
if
(
database_version
<
1
)
{
{
...
...
Write
Preview
Markdown
is supported
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