Commit Graph

276 Commits

Author SHA1 Message Date
Vladimir Rutsky
1758d99d4d Merge PR #52 - mdb-exportjson added 2015-02-19 20:46:33 +03:00
Nirgal Vourgère
13e339c1a4 Clarify usage of --no-comments in mdb-schema 2015-01-12 18:17:50 +01:00
Nirgal Vourgère
072f7c6518 Decrease POSIX required level to 1
One can now compile with CFLAGS="-std=c99 -D_POSIX_C_SOURCE=1 -pedantic"

Trade getopt.h function for glib equivalents:
This mean all utilities now have long option names.
Adjust manuals and bash_completion accordingly.

Added missing manual and bash_completion for mdb-import.
2014-12-29 13:12:23 +01:00
Nirgal Vourgère
2a70e16a8b Allow CFLGAS="-std=c99 -D_POSIX_C_SOURCE=2"
Use glib function:
strcasecmp -> g_ascii_strcasecmp
bzero -> memset
strdup -> g_strdump

Don't use arithmetic void*+int
2014-12-28 12:36:55 +01:00
David Hicks
f2890dc1d0 Add hexadecimal binary output conversion option
This commit adds another binary output conversion option to convert
binary blobs into hexadecimal notation, similar to the output of the
following command:
  xxd -p binaryfile.bin | tr -d '\n'

(In other words, a single line string of hexadecimal characters
representing a binary blob)

When exporting SQL INSERT statements for SQLite and PostgreSQL and when
the hexadecimal notation is specified with 'mdb-export -b hex ...',
special consideration is given to ensure that binary blobs are safely
written to the SQLite or PostgreSQL database.

Signed-off-by: David Hicks <david@hicks.id.au>
2014-06-29 04:12:06 +10:00
Ugo Di Girolamo
5057419da9 Add new binary util - mdb-exportjson
A new binary util for exporting mdb rows as json lines.
This is very useful for importing mdb data to mongo in combination with mongoimport.

The code is vastly similar to the mdb-export but there are enough dissimilarities and disagreement
about flag values that I thought a separate util is warranted.
2014-05-21 22:35:06 -04:00
Nirgal Vourgère
dfd752ec02 Spelling fix
Suppress has 2 p in English, thanks lintian.
2014-01-04 15:16:46 +01:00
Nirgal Vourgère
d9d58d3cae Added bash-completion snipets 2013-10-22 11:01:15 +02:00
Nirgal Vourgère
7841d30d43 Revert use of config.h
Revert
7162e8db74
088493d499

And drop AC_CONFIG_HEADERS so that config goes though the command line.
No longer generating config.h, update .gitignore
2013-07-15 02:42:12 +02:00
Nirgal Vourgère
088493d499 Update autoconf/automake standards
Generated files config.guess config.sub depcomp install-sh ltmain.sh missing
and ylwrap have been moved to build-aux/

Ran autoupdate

Replaced AC_TRY_LINK/AC_TRY_COMPILE by AC_LINK_IFELSE/AC_COMPILE_IFELSE

Droped -I$(top_srcdir)/include from CFLAGS since AC_CONFIG_HEADERS already
adds the -I

Fixed bison detection

Added AM_PROG_AR as required by autoreconf -i -Wall

Updated NEWS and .gitignore
2013-07-09 18:39:03 +02:00
Nirgal Vourgère
7162e8db74 Include config.h in all .c files
Need to be the first file since it may define large files support
and other options.
2013-07-04 10:53:13 +02:00
William Rogers
28af8d296a Dynamic allocation of MdbSQL->bound_values
Was previously hardcoded to 256 columns max.
2013-06-27 15:09:15 +02:00
Nirgal Vourgère
37cd3ecd2c Fix SEGV if mdb-array is given a bad filename
See bug repport at:
http://www.forallsecure.com/bug-reports/d256a6f86b05b4ca0a1d7097b64e7c6bcd98de6d/
2013-06-26 21:08:24 +02:00
William Rogers
ecc72f8faf mdb_sql_bind_all already in mdb_sql_run_query 2013-06-26 12:13:44 +02:00
Nirgal Vourgère
8a545120d7 Migrate mdb-export changes to gmdb2
Support for octal/stip of binary
Customisation of escape string
Quoting is done according to types rather that empiric analysis of str
conversion.
2013-01-13 21:20:00 +01:00
Nirgal Vourgère
7e8ae9b121 print_col new FILE* outfile parameter
TODO: Merge that code with the one in gmdb2
2012-12-09 13:10:09 +01:00
Nirgal Vourgère
915eeb61d4 mdb-export -b octal: Encode \0 too 2012-12-03 15:35:14 +01:00
Nirgal Vourgère
a66531c74a Added option to choose how to export blobs
Supported modes are:
- strip (don't export)
- raw (compatibility)
- octal (export as \ooo)

Note that gmdb2 dialog where updated, but not the code. Many fixes to do
there first :/
2012-12-02 20:52:21 +01:00
Nirgal Vourgère
f6cd70494c Automatically init/exit libmdb code
mdb_init() and mdb_exit() are now deprecated.
2012-07-22 02:29:04 +02:00
Nirgal Vourgère
f8a3839c7f Misc fixes in prcat and mdb_dump_catalog
Identation
User ACL entries
Show 6 digits for pages #
2012-07-21 13:22:04 +02:00
Nirgal Vourgère
d02eb47531 mdb-tables -T to show entry type 2012-07-07 23:42:14 +02:00
Nirgal Vourgère
a5573ab6d1 Fixed mdb-prop when there is no properties at all
This was printing "Unknown format"
2012-07-07 23:42:08 +02:00
Nirgal Vourgère
b0fb6a4167 Add basic support for Access 2010
Thanks Jakob Egger:
a928a36804
2012-07-07 21:08:25 +02:00
Jean-Michel Vourgère
c566407eaf Experimental support for JET5 .accdb files
Right now, they are handled like JET4 file.
2012-07-03 00:31:23 +02:00
Jean-Michel Vourgère
212337cfaa Renamed _mdb_put_int* into mdb_put_int*
These were the only symbols exported not starting with mdb_
Old names stay available as aliases
Bumped libmdb version to 2.0.1

Added these prototypes to mdbtools.h: Fixes compilation warning

Added mdb_insert_row prototype to mdbtools.h: Fixes compilation warning
2012-07-02 21:38:26 +02:00
Jean-Michel Vourgère
9c74aae165 Fixed some compiler warnings in prindex
Warn and continue if the field referenced by an index can't be found

Removed obsolete args from check_row
2012-07-02 14:48:34 +02:00
Will Daniels
04b6cf5232 Export REPID as string & use char(38) in mysql 2012-06-29 02:28:51 +02:00
Nirgal Vourgère
b7200c9b57 Added tests to quiet -Wall compilation 2012-02-02 20:22:30 +01:00
Nirgal Vourgère
69366e198f Warn about unsupported types in mdb-header
Print error message on stderr and returns 1 on failure.
2012-01-30 21:50:26 +01:00
Nirgal Vourgère
7e34078bcc Fix namespace in mdb-export when using -I
Thanks George L. Emigh for the bug report.
2012-01-30 11:41:04 +01:00
Nirgal Vourgre
dd0f4c3819 Patch docs.diff from Nirgal 2011-08-28 19:53:29 -04:00
Nirgal Vourgre
07f915b3c7 Patch utfsql.diff from Nirgal 2011-08-28 19:49:54 -04:00
Nirgal Vourgre
aee657f603 Patch warnings.diff from Nirgal 2011-08-28 19:48:44 -04:00
Nirgal Vourgre
1f2749cdfc Patch bufferdump.diff from Nirgal 2011-08-28 19:43:52 -04:00
Nirgal Vourgre
3e2407044d Patch prop_abi.diff from Nirgal 2011-08-28 19:42:34 -04:00
Nirgal Vourgre
8ef50c444e Patch nosanitize.diff form Nirgal 2011-08-28 18:56:03 -04:00
Nirgl Vourgère
3f26ec69cf Stop exporting internal libmdbsql symbols 2011-08-10 18:02:51 -04:00
Nirgal
456f261cab Bunch of fixes for compilation warnings, mostly unused vars. 2011-08-10 18:00:18 -04:00
Brian Bruns
5e4e31d1c9 format security patch from Nirgal Vourgère 2011-03-20 15:26:52 -04:00
Brian Bruns
b4238ac88f patch 'export' from Nirgal Vourgère 2011-02-21 14:11:41 -05:00
Brian Bruns
d794c6e2a1 patch default_values from Nirgal Vourgère 2011-02-16 18:59:25 -05:00
Brian Bruns
39277312d4 patch 'schema2' from Nirgal Vourgère 2011-02-16 18:58:22 -05:00
Brian Bruns
6696edf1f8 patch 'props' from Nirgal Vourgère 2011-02-16 18:58:02 -05:00
Brian Bruns
fa83ed0af0 patch 'ole' from Nirgal Vourgère 2011-02-16 18:57:40 -05:00
Brian Bruns
0eea4c148f patch schema-indexes from Nirgal Vourgère 2011-02-16 18:57:05 -05:00
Brian Bruns
586fdebc5c fix exporting of OLE data, from Nirgal Vourgère 2011-02-07 22:08:08 -05:00
Brian Bruns
3adb7d6bab clean up for kkd / mdb-props, from Nirgal Vourgère 2011-02-07 22:06:48 -05:00
Brian Bruns
037b9bc8fc remove cvsignore and add gitignore per Jeff Smith 2010-11-01 09:30:24 -04:00
Brian Bruns
85be8bbe68 patch 180-slowmap-fallback from Nirgal Vourgère 2010-11-01 09:26:46 -04:00
Brian Bruns
5ac44b69d9 patch from Terry Brown <terry_n_brown at yahoo.com> to add -N option to mdb-export 2010-08-03 20:09:37 -04:00
Brian Bruns
4f73e1b295 patch from Terry Brown <terry_n_brown at yahoo.com> to not sanitize the schema in mdb-schema 2010-08-03 20:04:29 -04:00
Brian Bruns
87af69a15e Debian patch 170-sequences from Nirgal Vourgère 2010-06-20 16:30:47 -04:00
Brian Bruns
30e5a6f4bb Debian patch 150-backend-quote from Nirgal Vourgère 2010-06-20 16:27:42 -04:00
Brian Bruns
7a073df76e Patch 155-blob from Nirgal Vourgère 2010-06-17 22:12:44 -04:00
Brian Bruns
789f7803fc Debian patch 110-export-csv-null 2010-06-16 23:42:17 -04:00
Brian Bruns
73b9d0d2d8 Debian patch 140-mdb-tables 2010-06-16 23:39:20 -04:00
brianb
5f6fc1cb9f bug #1398003. Sanitize column names when -S is given without -I 2007-03-06 01:16:54 +00:00
whydoubt
bc80bddf2b Fix typo in help text 2006-05-24 00:41:52 +00:00
whydoubt
2b2e300513 Add fflush after each newline (Pedro Gutierrez) 2005-12-17 09:55:38 +00:00
whydoubt
278b6e284c Fix several leaks and errors 2005-11-09 13:24:26 +00:00
whydoubt
5aafee6641 Utilize mdb_bind_column_by_name 2005-10-17 12:15:50 +00:00
whydoubt
b5e1204759 General cleanup 2005-10-17 11:26:51 +00:00
brianb
a443e83ae7 Clean up for 0.6 release and some bug fixes 2005-09-07 23:27:43 +00:00
whydoubt
c8a0c79e31 Use correct index for command line options 2005-08-10 04:39:50 +00:00
whydoubt
22c3b15218 Use more appropriate types (void *, size_t) 2005-06-28 04:53:37 +00:00
whydoubt
e6c4050c74 Handle 'file not found' case 2005-06-17 02:39:45 +00:00
whydoubt
160418635d Clean up some gcc4 warnings 2005-05-02 12:46:33 +00:00
whydoubt
2983da266c Remove an unused variable and a noop 2005-04-29 02:35:57 +00:00
whydoubt
d1a6f47bfb Only mdb-sql depends on readline 2005-03-29 03:33:23 +00:00
whydoubt
f8668dc119 Fix build error 2005-03-16 14:44:01 +00:00
whydoubt
2606b8eb51 Uncomment use of OLE functions 2005-03-16 12:50:21 +00:00
whydoubt
76c5cfe8c2 Fix a couple of leaks 2005-03-13 21:29:17 +00:00
whydoubt
3153f5dd1e Add mdb_find_row function 2005-03-07 04:28:12 +00:00
brianb
2002c19cee mdb-import fixes, kinda works now 2005-02-11 16:24:01 +00:00
whydoubt
d06cb3e47d Combine functions that bind a column and its length 2004-12-31 01:26:28 +00:00
brianb
fa8d24dd2b patch from Wind Li for iconv on jet3.
Small changes from me for writing.
2004-12-01 23:31:48 +00:00
whydoubt
fd550a5f52 Clean up some memory leaks 2004-12-01 06:34:27 +00:00
brianb
34a9eac4ea iconv conversion code 2004-11-26 05:22:52 +00:00
whydoubt
8b9c2cda5a Various mdb-sql improvements 2004-10-28 03:33:20 +00:00
whydoubt
fd04c906c8 Readline usage fixes 2004-10-25 04:11:13 +00:00
whydoubt
dd99bd0a68 Use 'Flags' field in MSysObjects to recognize system tables 2004-09-16 04:00:39 +00:00
whydoubt
56995ff968 Enable multi-page temp tables 2004-09-09 03:44:35 +00:00
whydoubt
4cc424f913 Warnings fixes 2004-07-17 14:21:43 +00:00
whydoubt
4a245f2af7 Warnings fixes and better use of GLib 2004-07-17 07:48:11 +00:00
whydoubt
e121a82946 Lots more gcc warnings fixes 2004-07-09 12:47:04 +00:00
whydoubt
3d47cc5570 Add function mdb_read_table_by_name 2004-07-02 12:29:09 +00:00
whydoubt
d6db6c3ed4 Fix some memory leaks 2004-06-24 04:22:40 +00:00
whydoubt
7e4a7bc113 Fix a memory leak 2004-06-23 03:03:06 +00:00
brianb
642a74c8c3 fix readline detection 2004-06-20 14:36:23 +00:00
whydoubt
c99ce9815d Fix a bug and a typo in mdb-schema 2004-06-18 05:13:16 +00:00
whydoubt
402e6be097 Major revisions to 'backend' code 2004-06-11 13:56:39 +00:00
whydoubt
a5afa5c9e4 better utilize glib functions, fix memory leaks 2004-05-30 07:19:22 +00:00
brianb
50a94fdccf handle any object type in mdb-prop 2004-05-02 11:39:25 +00:00
brianb
8c54cf8331 add -t flag 2004-05-02 11:24:39 +00:00
whydoubt
0baed7b268 Use mdb_close to match mdb_open instead of mdb_free_handle 2004-04-14 05:58:52 +00:00
whydoubt
edd22153c6 Make mdb-check compilable 2004-04-14 00:13:00 +00:00
brianb
4953cee0af signature change to mdb_open() 2004-04-13 20:06:04 +00:00
brianb
49cf3e0cbc delete orphan files 2004-04-12 14:27:07 +00:00
brianb
acd03635c4 broken pipe on commit, see previous log 2004-03-06 05:14:14 +00:00
brianb
3a9aa2ceb7 add -M option to mdb-ver
make gmdb2 version match mainline code
new dissector for jet4 tdef pages in gmdb2
gmdb2 right mouse click behaviour bugfix
pre-compute index page bitmap in mdb_index_unpack_page() in preparation for index writes.
2004-02-13 18:49:51 +00:00
brianb
df8bf09aa7 patch #856724/856342 and odds and ends. 2004-02-09 20:38:45 +00:00
brianb
7ef02592d0 half of patch #857342, still need to fix NULL values 2004-02-09 03:52:25 +00:00
brianb
fd616622f5 patch #849200 2004-02-09 03:09:52 +00:00
brianb
fed589b2e7 rework of patch #879693 to support 0=1 in where clause 2004-02-08 21:54:20 +00:00
brianb
083434c413 mysql patch 2004-02-08 18:41:06 +00:00
brianb
af7b6953ad last commit failed, see ChangeLog for changes 2004-02-06 02:35:18 +00:00
brianb
ede5601bf2 bug fix for #688181 2004-01-10 23:19:34 +00:00
brianb
8c68edba1f Basic checks on file to ensure it's an mdb database. bug # 587739 2004-01-10 21:46:14 +00:00
brianb
278cf8ef42 fix compiler warnings in libmdb/ util/ sql/ 2004-01-10 01:52:56 +00:00
brianb
d39cc57b44 Some work on indexes/write support. Bug fixes. Preliminary temp table/worktable work. 2004-01-09 21:05:56 +00:00
brianb
11b43644dc patches 00-14 from David Mansfield 2004-01-06 00:42:07 +00:00
brianb
8592cf5db5 missed added files 2003-05-02 22:20:44 +00:00
brianb
aa19a0892f resync...no idea what's in here, it's been sitting on the shelf for a while 2003-04-29 17:55:09 +00:00
brianb
75216d7a90 index work
dmalloc headers
mem leak fixes
start on i18n
2003-01-28 23:51:06 +00:00
brianb
f30001a4f5 typo fix 2003-01-22 20:15:42 +00:00
brianb
092e2b79af query planner stuff
some gcc -Wall fixes
added suport for _ in identifier names in SQL
gmdb2 manual additions
2003-01-20 16:04:24 +00:00
brianb
2af5847c6f updates for rpms lots o bug fixes, index stuff 2003-01-12 22:59:41 +00:00
brianb
f35c3f05b9 more index work
fixed gnome detection (i think)
added back/forward navigation to gui debugger
2003-01-09 20:24:19 +00:00
brianb
52528c6e95 add MDBPATH search
fix segfault in mdb-tables
2003-01-05 23:49:56 +00:00
brianb
c6da2f1845 mdb-check and prindex programs 2003-01-05 15:00:23 +00:00
brianb
320f03c401 added man pages for utils.
lots of gmdb2 work.
added statistics collection.
2003-01-05 14:57:50 +00:00
brianb
cc362c42e9 more gmdb2 work, reorged mdbhandle 2003-01-01 22:29:39 +00:00
brianb
3c0d61076d lots more gmdb2 stuff, converted table export to glade, added schema export, toolbars, properties window to glade, et al. 2002-12-30 16:38:47 +00:00
brianb
d1e586cdf0 missed a couple files and updated for new progs 2002-12-27 20:40:21 +00:00
brianb
8b6a84bd0b patches 604726 and 655057 and more gmdb2 work 2002-12-27 20:31:29 +00:00
brianb
16735470a7 port of gmdb to gnome2. lots o other stuff 2002-12-27 15:09:02 +00:00
brianb
0cf1a2242d jet 4 changes 2002-12-10 23:35:24 +00:00
trewitt
5346c79e8c Add exit(0) to the end of all programs. 2002-08-12 17:37:04 +00:00
trewitt
813ed0918a Remove files that are automatically generated by automake, configure. 2002-08-12 14:52:46 +00:00
trewitt
e936a17a10 Remove automatically-generated 'Makefile's. 2002-08-12 00:41:59 +00:00
brianb
695cc9c00a remove jumps from column start calculation for JET4
adding -1 and -d flags to mdb-tables
added table not found message to prtable
2002-04-21 03:09:26 +00:00
brianb
e7927f94bc Fixed unixODBC 2.1.0+ bug.
fixed GTK/Gnome handling.
more debugger stuff.
2002-04-14 23:35:39 +00:00
brianb
0d0e0efbb7 fix gtk/gnome compilation of gmdb, export table fixes, more dissection in debug tab. 2002-04-12 01:27:41 +00:00
brianb
53bfc9027b commiting gmdb
doc updates
odbc fixes
2002-04-09 01:19:26 +00:00
brianb
e2c3a9d818 odbc fixes, updates for v0.4 2002-04-03 23:02:53 +00:00
brianb
9b8285d937 change catalogentry to GPtrArray, documentation fixes, add ifdef wrapper to mdbsql.h 2002-03-27 13:00:00 +00:00
brianb
16ecc4fe4d remove bad file from Makefile.am 2002-03-21 04:29:40 +00:00
brianb
8ab30cf0d1 what version is an mdb file? 2002-03-21 04:27:37 +00:00
brianb
6ce4521627 somehow didn't get added back when moved 2002-03-21 04:23:45 +00:00
brianb
1a96e241d0 Initial changes for Access 2000 files 2002-02-03 02:49:08 +00:00
brianb
ea8fd2a6ba massive sync up of my code to CVS. not sure what changed. 2002-01-24 12:34:10 +00:00
brianb
e0f83b2446 made SQL support optional 2001-07-24 02:56:20 +00:00
brianb
3d4bc34b70 Enhancements for getting Access 2000 to work (almost)
Fixes for working with bison
2001-05-16 00:21:17 +00:00
brianb
606887dfbd added like operator and handling of string sargs
Added index stuff to HACKING file
Misc. mdb-sql updates
2001-04-20 21:06:46 +00:00
brianb
ee6df7d015 clean up 2001-04-16 00:54:57 +00:00
brianb
ac4ea2adc5 clean up 2001-04-15 23:55:44 +00:00
brianb
138f2696cb stuff missed from reorg 2001-04-11 23:53:50 +00:00
brianb
12d830dc62 restructing...automake now used sql stuff working 2001-04-11 23:33:19 +00:00
brianb
ee6eacbe22 Added support for MDB_BOOL, MDB_MONEY, MDB_BYTE, MDB_SDATETIME 2001-02-17 04:48:34 +00:00
brianb
fb576534d8 > 255 column patches and multipage table defs from Tim Nelson
mdb-export fixes
spec file
2000-10-13 21:33:04 +00:00