Commit Graph

14 Commits

Author SHA1 Message Date
Tim Stack
664f45f641 [build] check for sqlite3_drop_modules
Fixes #1053
2022-09-10 10:37:04 -07:00
Timothy Stack
880fe6a68a [tests] handle older sqlite 2022-07-08 15:55:53 -07:00
Timothy Stack
f3934c742d [error] leverage sqlite3_error_offset 2022-07-08 14:17:34 -07:00
Suresh Sundriyal
6663740c5e [secure-mode] Disallow ATTACH statements completely.
The code to handle in-memory db exceptions is hideous and unreliable,
given the fact that SQLite does not expose much in terms of getting the
current value and the methods to check the compile time options can
themselves be disabled by a compile=time option in SQLite.

There really isn't much use for in-memory databases and if someone
really needs it, they can always choose to run in normal mode, so just
remove the extra code.
2016-05-04 20:21:01 -07:00
Suresh Sundriyal
a13047a9ed [secure-mode] Check to see if URIs are enabled.
Check to see if URIs are enabled or not before continuing on with the
file uri checks.
2016-05-03 02:11:33 -07:00
Timothy Stack
27f300b677 [sql] some more json-related updates/fixes 2015-12-09 21:20:49 -08:00
Suresh Sundriyal
65959bab47 [build] Stop adding to the environment variables.
The AutoMake scripts honor the SQLITE3_XXX flags already. There is no need to
keep adding stuff to the environment variables.
2015-04-07 20:22:42 -07:00
Suresh Sundriyal
b53e3f2401 [build] Get rid of warnings from autoreconf.
* Remove some of the obsolete macros.
* Use AC_CONFIG_MACRO_DIR to allow compatibility with older versions of
  autoconf.
* Remove AU_ALIAS from curses macro.
2015-04-01 01:04:12 -07:00
Suresh Sundriyal
2554f19b23 [build] macro refactor 2015-03-27 04:34:25 -07:00
Suresh Sundriyal
9f1da30515 [build] Add the '-pthread' to the list of extra libraries.
Instead of setting it manually.
2015-03-27 04:14:39 -07:00
Suresh Sundriyal
a903873f1b [build] Add '-pthread' to sqlite macro.
On some systems, sqlite3 requires pthread libraries to be linked in. Add
the flag so that autoconf can successfully compile and look for
'sqlite3_open'.
2015-03-26 20:40:41 -07:00
Suresh Sundriyal
fcdc67eda9 Remove quotes from LNAV_ADDTO arguments. 2015-03-26 17:11:23 -07:00
Suresh Sundriyal
649f486d13 [File headers] Add some headers to m4 files.
Add the license and copyright headers to m4 files.
2015-03-23 03:23:05 -07:00
Suresh Sundriyal
13c6b82f8c [build] Fix SQLite3 realted m4 macros.
The current macro does not seem to honor the CFLAGS and LDFLAGS
variables if '--with-sqlite3=yes' is used. Fix this and some of
the other cruft in the macro.
2015-03-23 03:22:59 -07:00