Commit Graph

788 Commits

Author SHA1 Message Date
Evan Miller
7dcb42eae3 Try fixing Cygwin 2020-08-05 09:00:38 -04:00
Evan Miller
41c7e01ec7 Even more Windows fixes 2020-08-05 08:41:33 -04:00
Evan Miller
1d7d3c39d2 Maybe finally fix Windows builds 2020-08-05 08:32:48 -04:00
Evan Miller
8ef1c6e1c3 Provide vasprintf on Windows 2020-08-05 08:26:40 -04:00
Evan Miller
32ec8081b0 Fix build 2020-08-05 08:04:46 -04:00
Evan Miller
40433e3a11 Compile fakeglib into libmdbsql
Fixes build error
2020-08-05 00:55:49 -04:00
Evan Miller
36ba51db7a More Windows fixes 2020-08-05 00:45:14 -04:00
Evan Miller
4f481000a8 Fix logic error / warning in fake g_list_remove 2020-08-05 00:27:03 -04:00
Evan Miller
6771014c49 Windows portability fixes 2020-08-05 00:20:59 -04:00
Evan Miller
bcc6defe94 Merge branch 'master' into no-glib 2020-08-04 23:53:50 -04:00
Evan Miller
5cad353bac Fix unused but set variable warning 2020-08-04 18:04:08 -04:00
Evan Miller
2be700826a Fix build error when strptime is not present 2020-08-04 17:38:07 -04:00
Evan Miller
a9fb4c65d3 Fix strict prototypes warning 2020-08-04 17:35:20 -04:00
Evan Miller
9941cb2927 More printf portability fixes 2020-08-04 17:34:54 -04:00
Evan Miller
446b92b2c8 printf portability fixes 2020-08-04 17:24:04 -04:00
Evan Miller
c7d53108d3 Decode GUID properties
Fixes #2
2020-08-04 16:01:25 -04:00
Evan Miller
679c90141f Improve error message 2020-08-04 15:10:23 -04:00
Evan Miller
65b3701d67 Fix building utilities with GLib present 2020-08-04 08:02:10 -04:00
Evan Miller
f9a0234cf4 Support long-style options (fake GLib) 2020-08-03 23:58:33 -04:00
Evan Miller
255b38d7fd Implement g_option_context_parse for short options
Use getopt under the hood for old-fashioned argument parsing. Still need
to add support for --long-style-options.
2020-08-03 22:13:13 -04:00
Evan Miller
fa01a6fe27 Implement g_option_context_get_help (fake GLib)
This fixes the crashing issues, but the command-line tools are still
useless.
2020-08-03 19:55:03 -04:00
Evan Miller
cb7b694d4b Merge branch 'master' into no-glib 2020-08-03 18:59:01 -04:00
Evan Miller
68724b2cf2 Fix JET4 warnings brianb/mdbtools#158 2020-08-03 17:34:53 -04:00
Evan Miller
8a63560ca1 Merge https://github.com/markord/mdbtools
Enable memo field filtering. See:

brianb/mdbtools#140
brianb/mdbtools#141
2020-08-03 17:25:09 -04:00
Evan Miller
e9f4c6c786 Remove GLib dependency WIP
Add a shim implementing half-assed versions of most of the GLib
functions used by MDB Tools. If GLib is detected at compile-time,
use it, otherwise use the shim.

This work is not complete, as the option-parsing code is not yet
implemented - so most of the command-line tools crash.
2020-08-03 17:19:40 -04:00
Evan Miller
a2fa34c0cb Merge https://github.com/Kaukov/mdbtools 2020-08-03 16:55:40 -04:00
Evan Miller
61d928ea68 Fix warning when compiling without Readline 2020-08-03 15:13:11 -04:00
Peter Kaukov
55858b6fe1 Fix flex library linking 2019-07-13 23:56:32 +03:00
Evan Miller
7b3721a4e1 Merge github.com:cyberemissary/mdbtools 2019-06-03 11:58:16 -04:00
VJ
c8fd67bf84 Fix more warnings as a result of #14 2019-05-31 21:59:37 -04:00
Evan Miller
cdde7c3268 Enable strict prototypes warnings, and fix warnings
If a host project has -Wstrict-prototypes enabled, the mdbtools header
results in warnings. Turn on -Wstrict-prototypes for the whole project
so that these never occur again.
2018-12-29 10:34:54 -05:00
Evan Miller
2b84f6c7f5 Fix buffer overflow 2018-09-20 13:02:32 -07:00
Mark Ord
f893efb401 Unable to filter on memo field #140
* Added case statement for comparing memo fields
2018-05-26 10:37:05 -07:00
Evan Miller
0e9c1810f1 Improved support for Access 2010, 2013, and 2016
Some Access 2010 files use 0x03 as the version number rather than
0x0103. For this reason I have changed the call to mdb_get_int32 to
mdb_get_byte.

In addition, according to the Library of Congress page:

https://www.loc.gov/preservation/digital/formats/fdd/fdd000463.shtml

Access 2016 uses 0x05 as the version number. I have inferred from the
Wikipedia page that Access 2013 likely uses 0x04.
2018-03-05 06:39:57 -05:00
Cyber Emissary
40b7818906 Merge pull request #2 from mdjnewman/unknown-version-logging
Print unknown Jet versions in libmdb
2018-02-12 16:43:37 -05:00
Cyber Emissary
3a245f13d5 Merge branch 'mdb-count' of https://github.com/kodonnell/mdbtools 2018-02-12 16:22:52 -05:00
Cyber Emissary
104d952cda Merge pull request #6 from jimmytaker/omaster
Use bigger buffer when reading big blobs to increase performance
2018-02-12 15:48:30 -05:00
Cyber Emissary
278f9ba441 Implemented bulk insert 2018-02-12 15:21:15 -05:00
Cyber Emissary
dbc7e51e98 do not include table name in MySQL indexes. 2018-02-06 13:11:13 -05:00
Cyber Emissary
fd230f68f2 precision and scale were used other way around. Flipped their usage
in all places
2018-02-06 13:10:56 -05:00
Cyber Emissary
702ce2b7cd fixed mysql types, and numeric scale/precision 2018-02-06 13:10:13 -05:00
Bruce Johnson
5bfd423e19 Update mdb_index_hash_text() call to match latest signature 2018-01-19 05:51:00 -05:00
Matt Newman
d196436a27 Print unknown Jet versions in libmdb 2018-01-16 18:24:53 -05:00
leecher1337
e9ec53f6bd Fixing JET4 Index support via libmswstr. Used as a separate library to do it like MS Jet and to ensure that mdbtools library doesn't get tainted with its source. 2017-12-05 00:13:28 +01:00
leecher1337
c81d35f2ea Optimization: Assuming that the index is sorted, I guess an index search can bail out as soon as target value has been found? 2017-12-03 23:25:35 +01:00
leecher1337
4edb48ed17 Bugfixes for JET4 indices. 2017-12-03 23:20:11 +01:00
leecher1337
42cdc6727e index.c: Centralised debugging helper 2017-12-03 18:18:21 +01:00
leecher1337
f8aa3f1104 Let debug hexdump-function output as unsigned hex value properly 2017-12-03 17:57:24 +01:00
leecher1337
5c32359f3e Fixed severe double-free bug on mdb_clone_handle with immediate mdb_close() afterwards leading to memory corruption 2017-12-03 17:53:41 +01:00
leecher1337
135f452407 Merge branch 'master' into master 2017-12-03 17:02:15 +01:00