nirgal
58f240ac6f
Added back -q support
2020-10-25 20:49:20 +00:00
Nirgal Vourgère
f6053aa211
Quote shell special characters ...
...
... and add support for mdb-count mdb-json and mdb-queries
2020-10-25 20:19:39 +01:00
Nirgal Vourgère
c7d527fdeb
mdb-export: Rename --backend into --insert
2020-10-25 12:09:51 +01:00
Nirgal Vourgère
ea478f3bc6
mdb-export: reorder options, man, bash-completion
2020-10-25 11:24:28 +01:00
Rainer Hurling
5b292e0063
Unsigned error in index.c
...
On FreeBSD 13.0-CURRENT its compiler clang-11.0.0 complains:
index.c:388:14: error: comparison of integers of different signs: 'int' and 'unsigned int' [-Werror,-Wsign-compare]
for (i=0; i<len+1; i++) {
~^~~~~~
2020-10-24 20:29:46 +02:00
James Woodcock
9bf70e0e1e
mdb-export: use sensible date formats
2020-10-24 09:41:39 +01:00
Nirgal Vourgère
d0d95f6503
Install bash-completion snippets by default
...
Added autoconf --with-bash-completion-dir and --without-bash-completion-dir options
2020-10-23 18:58:45 +02:00
Nirgal Vourgère
f192c258ab
bash-completion: get rid of "have" calls
...
have function disappeared in bash-completion 1.90 (2011)
2020-10-23 14:05:50 +02:00
Evan Miller
131b443102
Do not exit from library
2020-10-18 09:45:51 -04:00
Evan Miller
d8ed91bb05
Include missing header files in make dist
2020-10-18 07:59:45 -04:00
nirgal
6a41020538
Spelling typo
2020-10-18 08:59:36 +00:00
Nyall Dawson
3ac497c6ff
Fix crash when a missing file is accessed via ODBC
2020-10-12 13:47:11 +10:00
Evan Miller
a051350ba1
make distcheck fixes
2020-10-11 15:46:19 -04:00
Evan Miller
c19654ad40
Remove gmdb2
...
Split off the Gnome MDB file viewer into its own project:
https://github.com/mdbtools/gmdb2
This simplifies the build process somewhat and lets us focus on the core
project. (For starters, no more -Wno-portability flag!)
2020-10-11 14:59:08 -04:00
James Woodcock
eb5dd4d0b7
Support "SELECT TOP n [PERCENT]... " queries.
...
Updated the SQL parser to support "SELECT TOP n [PERCENT]... " queries,
matching the Mocrosoft Access SQL language.
Export these queries from databases with mdb-queries.
2020-09-26 11:28:34 +01:00
Evan Miller
9d0c40905d
Merge branch 'dev' of github.com:mdbtools/mdbtools
2020-09-19 14:01:23 -04:00
James Woodcock
833985043f
mdb-sql: Simplify handling files loaded by ":r"
...
:r is an undocumented command to load SQL files from the msb-sql prompt
2020-09-19 11:29:41 +01:00
James Woodcock
eab60a6060
mdb-sql: Handle ';' as terminators in SQL input files
2020-09-19 11:28:44 +01:00
James Woodcock
9c8b67b8f8
mdb-sql: support ';' as an SQL terminator
2020-09-19 11:28:00 +01:00
Evan Miller
9f41e03278
Fix up libtool version-info logic
2020-09-05 10:50:24 -04:00
Evan Miller
6e08ad5ae9
Add copyright info for fakeglib
2020-09-05 10:49:56 -04:00
Evan Miller
7f7761e884
Improved support for "Short Date" fields
...
* Separate -D (date only) and -T (date/time) format options in mdb-export and mdb-json
* New public mdb_set_shortdate_fmt() function in libmdb
* New private(ish) mdb_col_is_shortdate() function
I'm calling it "shortdate" in order to preserve the existing API.
See https://github.com/mdbtools/mdbtools/issues/12
2020-09-02 22:14:57 -04:00
Evan Miller
0023e4efe4
Update options documentation [CI SKIP]
2020-09-02 21:33:49 -04:00
Evan Miller
a13936bd77
Support comparisons with MDB_FLOAT and MDB_DOUBLE
...
See https://github.com/mdbtools/mdbtools/issues/105
2020-09-02 21:24:24 -04:00
Evan Miller
aa0ce8fb3e
Consolidate print_col functions into backend.c
2020-09-02 20:38:15 -04:00
Evan Miller
7b5d547acf
Merge branch 'mysql-comments' of github.com:mdbtools/mdbtools into merge-164
2020-09-02 15:48:29 -04:00
Evan Miller
0fb33c2eb6
Fix prototype error with GCC
2020-09-02 15:07:13 -04:00
Evan Miller
9f23385a8c
New mdb_get_version() function
...
See https://github.com/mdbtools/mdbtools/issues/138
2020-09-02 14:55:32 -04:00
Evan Miller
fb960553e6
New mdb_set_bind_size function overrides MDB_BIND_SIZE
...
This should fix long-standing complaints about the default bind size
without causing undue memory inflation in existing applications.
Could make this adjustable on the command line later.
Supersedes:
https://github.com/mdbtools/mdbtools/pull/137
2020-09-02 14:30:07 -04:00
Evan Miller
b7dd44d0d4
Merge pull request #42 from evanmiller/mdb-exportjson
...
mdb-json tool
2020-09-02 12:05:02 -04:00
Evan Miller
0f5bbdf96c
Rename tool to mdb-json and use modern option parsing
2020-09-02 11:47:50 -04:00
Evan Miller
4b177914ee
Move test data to separate repository
2020-09-02 10:44:12 -04:00
Evan Miller
01711b49f4
Merge branch 'hexbinaryexportmode' of github.com:davidhicks/mdbtools into export-hex
2020-09-02 09:53:50 -04:00
Evan Miller
a598148afc
Merge branch 'export-mongodb-json' of github.com:rutsky/mdbtools into mdb-exportjson
2020-09-02 09:18:52 -04:00
Evan Miller
9a0abb43ae
Fix GCC warnings
2020-09-01 22:43:10 -04:00
Evan Miller
c76fad6356
Add ancient mdb-queries tool by Leonard Leblanc
...
Modified to run with modern libmdb.
See: https://github.com/mdbtools/mdbtools/issues/122
2020-09-01 22:34:55 -04:00
Evan Miller
cea7553e00
Export fakeglib symbols from main library
2020-08-31 13:27:08 -04:00
Evan Miller
be888e0dd7
Support fuzz testing ( #4 )
...
Quickstart (requires Clang 6 or later):
$ export LIB_FUZZING_ENGINE=/path/to/fuzzing/library.a
$ ./configure --enable-fuzz-testing
$ make
$ cd src/fuzz
$ make fuzz_mdb
$ ./fuzz_mdb
Also add a new `mdb_open_buffer function` to facilitate in-memory
fuzz-testing. This requires fmemopen, which may not be present on all
systems. The internal API has been reworked to use file streams instead
of file descriptors. This allows reading from memory and reading from
files using a consistent API.
2020-08-31 13:03:58 -04:00
Evan Miller
8b40423f65
Merge pull request #36 from nyalldawson/precedence
...
Setup operator precedence for parser to avoid ambiguity and fix shift/reduce warnings
2020-08-22 18:28:23 -04:00
Nyall Dawson
83104b7b69
Setup operator precedence for parser to avoid ambiguity and fix shift/reduce warnings
2020-08-23 07:57:17 +10:00
Nyall Dawson
88e2ffa34a
const correctness (fixes warning)
2020-08-23 07:56:26 +10:00
Evan Miller
a08dab706e
Fix crash in previous commit
2020-08-21 08:53:05 -04:00
Evan Miller
2ee83971fa
Clean up mdb_clone_handle
2020-08-20 21:57:25 -04:00
Evan Miller
4d443840cb
Try to fix a crash
2020-08-20 21:31:38 -04:00
Evan Miller
09c497bffd
Fix double free with backend dictionary
2020-08-20 20:10:51 -04:00
Evan Miller
6d7a5c79af
Merge branch 'master' into backend-thread-safety
2020-08-20 19:53:29 -04:00
Nyall Dawson
ab9d17ef98
Fix read after free error
2020-08-21 09:36:01 +10:00
Evan Miller
e743949e47
Change char * to const char *
2020-08-20 15:46:06 -04:00
Evan Miller
f668f25d99
Use GCC struct initializers for clarity
2020-08-20 15:37:05 -04:00
Evan Miller
b36f2bff1d
Merge branch 'master' into backend-thread-safety
2020-08-20 15:22:52 -04:00