Vladimir Rutsky
bc1483429d
use JSON unicode escape \uUUUU instead \xXX for [0, 0x20) characters
...
JSON specification doesn't allow `\xXX` escape sequences
2015-02-19 21:05:49 +03:00
Vladimir Rutsky
47c0698609
treat only characters with codes in [0, 0x20) range as non-ascii
2015-02-19 21:05:49 +03:00
Vladimir Rutsky
d8cba08493
fix delimiter outputting when some fields values are missing
2015-02-19 20:51:57 +03:00
Vladimir Rutsky
b842480cd5
don't drop non-ascii characters by default
...
This corresponds to `-A` option description.
2015-02-19 20:48:44 +03:00
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