Evan Miller
abe7ebcb74
Add ODBC unittest to Travis
2020-08-10 16:59:15 -04:00
Evan Miller
4ca16b8edf
Fix bug in fake g_strsplit
...
Lack of NULL termination caused an occasional crash
2020-08-10 16:58:11 -04:00
Evan Miller
cc292b3f0d
Improved ODBC error messages
2020-08-10 16:57:43 -04:00
Evan Miller
3c7761f965
Support --disable-glib flag with ODBC driver
2020-08-10 15:58:22 -04:00
Evan Miller
d4f7bd6ec5
Remove mdb-check
...
This program is not built by default, and its functionality is covered
by the other utilties.
2020-08-10 06:58:05 -04:00
Evan Miller
82bbc0cef7
Improved bounds checking
2020-08-09 16:38:25 -04:00
Evan Miller
7690ef376f
Turn off -Wsign-compare for the lexer
...
Flex doesn't like it.
2020-08-09 16:23:06 -04:00
Evan Miller
c93156626c
Fix all sign-compare warnings
...
Also flip on -Wsign-compare in the default configuration
2020-08-09 16:15:20 -04:00
Evan Miller
99099cdada
Remove unnecessary "extern" keywords from header files
2020-08-09 16:14:19 -04:00
Evan Miller
de46410a8e
Tweak README
2020-08-09 15:23:38 -04:00
Evan Miller
98381e83a5
Merge pull request #7 from evanmiller/update-iconv-m4
...
Update iconv.m4
2020-08-07 13:28:09 -04:00
Evan Miller
5c3cc98447
Update iconv.m4
...
The existing iconv.m4 warns against using a serial version, but adding
an empty config.rpath to build-aux/ should make it work just fine.
The new version should work better on various less-popular platforms.
2020-08-07 13:02:06 -04:00
Evan Miller
2e1e1ed796
Simplify bounds checking logic with snprintf
2020-08-06 23:58:34 -04:00
Evan Miller
47724e50c9
Merge pull request #5 from nyalldawson/fix_SQL_COLUMN_TYPE_NAME
...
Implement SQL_COLUMN_TYPE_NAME field identifier in SQLColAttributes
2020-08-06 23:57:15 -04:00
Evan Miller
e7782f7821
Remove debugging comments from mdb-schema
2020-08-06 23:18:05 -04:00
Evan Miller
2e6e88b96f
Improve bounds and return-value checking
...
Fixes a memory leak and a number of buffer overruns
2020-08-06 15:17:04 -04:00
Evan Miller
b01c4b8941
Check result of mdb_find_pg_row / fix crash
2020-08-06 14:14:32 -04:00
Evan Miller
4682ec0f8a
Fix crash
2020-08-06 14:08:30 -04:00
Evan Miller
63e8cb54ac
Merge pull request #1 from evanmiller/no-glib
...
Remove GLib dependency
2020-08-06 13:19:25 -04:00
Evan Miller
272bd191bc
Merge branch 'master' into no-glib
2020-08-06 12:51:52 -04:00
Evan Miller
2117195fac
Update README
2020-08-06 12:51:45 -04:00
Evan Miller
9b6b52cc8c
Fix buffer overflow in mdb_numeric_to_string brianb/mdbtools#124
2020-08-06 12:34:09 -04:00
Evan Miller
c67a92f459
Provide NUMERIC type in Postgres backend brianb/mdbtools#129
2020-08-06 08:20:11 -04:00
Evan Miller
edc20bcc39
Merge branch 'master' into no-glib
2020-08-06 08:16:06 -04:00
Evan Miller
c17aeb0826
Remove length specifier from MySQL TEXT types brianb/mdbtools#133
2020-08-06 08:15:06 -04:00
Evan Miller
d0d3060223
Fix program_invocation_short_name on Cygwin
2020-08-05 23:59:58 -04:00
Evan Miller
0b6809be82
Fix program_invocation_short_name on Linux
2020-08-05 23:54:25 -04:00
Evan Miller
7c324a9cb4
Fix warnings
2020-08-05 23:48:49 -04:00
Evan Miller
8bacbf1678
Fix unused result warning
2020-08-05 23:27:19 -04:00
Evan Miller
04b736c9ff
Fix indentation warnings
2020-08-05 23:22:08 -04:00
Evan Miller
514b74744b
Try fixing Linux warnings
2020-08-05 23:17:22 -04:00
Evan Miller
783304c164
Turn on -Werror
2020-08-05 23:07:48 -04:00
Evan Miller
fe28ce8d25
Fix vasprintf warning with GCC
2020-08-05 23:07:13 -04:00
Evan Miller
cb7bd54c92
Merge branch 'master' into no-glib
2020-08-05 23:03:49 -04:00
Evan Miller
0407fc3a8d
Fix type-pun warning
2020-08-05 23:03:10 -04:00
Evan Miller
921fb77ecd
Merge branch 'master' into no-glib
2020-08-05 22:54:16 -04:00
Evan Miller
8bda9bd8ee
Fix misleading indentation warnings
2020-08-05 22:53:57 -04:00
Evan Miller
1e339cb967
Merge branch 'master' into no-glib
2020-08-05 22:38:28 -04:00
Evan Miller
1d289a65b3
Fix buffer overruns and NULL pointer deferences
2020-08-05 22:35:56 -04:00
Evan Miller
18de0070af
New --disable-glib configure option
...
This option uses the fake GLib shim even when GLib is present on the
system.
2020-08-05 20:36:20 -04:00
Evan Miller
12ba8a424a
Merge branch 'master' into no-glib
2020-08-05 19:49:25 -04:00
Evan Miller
64dd48a752
Fix indentation warning
2020-08-05 19:35:24 -04:00
Evan Miller
68d3a22e77
Merge branch 'master' into no-glib
2020-08-05 18:49:24 -04:00
Evan Miller
d31bbe88c5
Fix crash when a date column lacks a Format property brianb/mdbtools#132
2020-08-05 18:33:33 -04:00
Evan Miller
cac3f7aca5
Default to single quotes when exporting to Postgres
...
See:
brianb/mdbtools#119
brianb/mdbtools#128
2020-08-05 18:27:48 -04:00
Evan Miller
aecee0e594
Provide SQL_DESC_UPDATABLE column attribute brianb/mdbtools#156
2020-08-05 18:19:23 -04:00
Evan Miller
10f20f26b1
Remove unused function
2020-08-05 17:54:19 -04:00
Evan Miller
ce9ad2920d
Merge branch 'master' into no-glib
2020-08-05 17:10:10 -04:00
Evan Miller
0c5f73d1d7
Fix crash when the catalog table is invalid
2020-08-05 17:01:08 -04:00
Evan Miller
cde53c4332
Respect octal flag in mdb-export brianb/mdbtools#153
...
The *col_val <= 0 check appears to have been intended to print ASCII
characters as-is. But this is not a good check, and goes against the
documented behavior.
2020-08-05 13:38:50 -04:00
Evan Miller
3439f390fc
Merge branch 'master' into no-glib
2020-08-05 13:13:41 -04:00
Evan Miller
4a97e00a79
Suppress automake portability warnings
2020-08-05 13:10:08 -04:00
Evan Miller
b8181fa65f
Add -Wno-conflicts-sr to yacc flags
2020-08-05 10:08:11 -04:00
Evan Miller
7436fa0e0e
Yet another attempted cygwin fix
2020-08-05 09:53:41 -04:00
Evan Miller
05092351df
Don't rely on strdup / cygwin fix
2020-08-05 09:35:19 -04:00
Evan Miller
f1af742ecf
Another attempted Cygwin fix
2020-08-05 09:22:26 -04:00
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
7ecd132e57
Cygwin fix
2020-08-05 08:17:49 -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
71969c29df
Remove GLib from Appveyor
2020-08-05 00:33:29 -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
4e9bee2dc8
Windows build fixes
2020-08-04 17:52:22 -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
8755c26637
Install GLib on appveyor machines
2020-08-04 17:13:37 -04:00
Evan Miller
7e540c346f
Add Appveyor config
2020-08-04 17:09:23 -04:00
Evan Miller
c7d53108d3
Decode GUID properties
...
Fixes #2
2020-08-04 16:01:25 -04:00
Evan Miller
b764d72ed8
Add example databases and a basic Travis test script
2020-08-04 15:17:08 -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
ca8eb1c522
--enable-sql is obsolete
2020-08-03 16:55:16 -04:00
Evan Miller
d4cf5526e2
Add more Travis targets
...
Disable txt2man for now since it's not available in Homebrew
2020-08-03 16:23:05 -04:00
Evan Miller
61d928ea68
Fix warning when compiling without Readline
2020-08-03 15:13:11 -04:00
Evan Miller
895b62edd0
Add txt2man to Travis config
2020-08-03 15:05:23 -04:00
Evan Miller
4cf98f0b7a
Update README. There's a new fork in town.
2020-08-03 15:02:20 -04:00
Evan Miller
bcb642121b
Add basic Travis file
2020-08-03 14:54:10 -04:00
Evan Miller
7b3721a4e1
Merge github.com:cyberemissary/mdbtools
2019-06-03 11:58:16 -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
60cc06e283
Merge github.com:cyberemissary/mdbtools
2018-12-29 09:57:19 -05:00
Evan Miller
2b84f6c7f5
Fix buffer overflow
2018-09-20 13:02:32 -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