Commit Graph

475 Commits

Author SHA1 Message Date
William Rogers
fd6e52f9bd Fixed MDBProps memory leaks 2013-06-25 21:33:38 +02:00
William Rogers
23942c19d3 Update _SQLGetData - Was incorrectly attempting to validate input of an output only parameter
According to the spec, pcbValue is designated as an output only variable, so there is no need to validate any incoming values.

Some packages do not initialize this variable before passing it into the function call; this will randomly result in an improperly thrown error.

Removed the input validation.
2013-06-23 18:28:43 +02:00
tyzhaoqi
9cd05ffdcc Added missing break in switch/case
That missing break is not just a memory leak:
It results in incorrect call to mdb_unicode2ascii for binary data!
I suspect that is what is causing segfault on some db as repported on
https://github.com/brianb/mdbtools/issues/19
2013-06-23 17:56:53 +02:00
rogerswb
40d1ecd11f Update _SQLGetData - Was incorrectly attempting to validate input of an output only parameter
According to the spec, pcbValue is designated as an output only variable, so there is no need to validate any incoming values.

Some packages do not initialize this variable before passing it into the function call; this will randomly result in an improperly thrown error.

Removed the input validation.
2013-05-23 14:58:19 -05:00
Nirgal Vourgère
eeadcb54f3 Use macros for depreacated function attributes
This will help porting on compilers that don't support it
2013-01-13 23:50:42 +01:00
Jimmytaker
c9f602480b Code cleanup
Enforce consistency g_malloc - g_free and malloc - free
Move var declarations on top of functions
2013-01-13 23:17:07 +01:00
Nirgal Vourgère
5eeb5c5050 Show SQLite support in gmdb2 and manual. 2013-01-13 22:41:10 +01:00
Jimmytaker
70c6fb7551 Added support for sqlite 2013-01-13 22:32:31 +01: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
Jimmytaker
6df0aa6ce0 Port to Windows and SQLite Extension 2012-12-31 20:40:12 +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
473d820239 Replace map files by -export-symbols-regex use
We had to support -export-symbols-regex anways
And map file did not really support versions but only list which symbol
to export. So this is more simple.
2012-10-20 14:32:32 +02:00
Nirgal Vourgère
c7bbac2cab Tweak odbc calls
Removed obsolete FAR from code

SQLfunction calls _SQLfunction rather than the reverse: This avoids
deprecated warning on MacOSX.
2012-10-20 14:22:59 +02:00
Nirgal Vourgère
052bb94361 Fixed some odbc prototypes
And also a bunch of warnings
2012-10-12 15:21:59 +02:00
Nirgal Vourgère
bd9091ce57 Backup --version-script with -export-symbols-regex
When ld doesn't support --version-script, use -export-symbols-regex
instead.
2012-10-12 14:33:36 +02:00
Nirgal Vourgère
ea9a4ef1e5 Drop support for SunOS style --version-script
Not working, and causes compilation problems on MacOS
2012-10-12 13:30:10 +02:00
Nirgal Vourgère
cca7001f98 Added support for SunOS style --version-script 2012-10-10 18:27:52 +02:00
Nirgal Vourgère
d0e7eb7d8d Disable ODBC wide char if iconv is not available 2012-10-10 14:27:30 +02:00
Nirgal Vourgère
851877c86c Changed printf specifier for off_t
Fixes some warnings on OSX
2012-10-04 15:37:30 +02:00
Nirgal Vourgère
6b6e54bd14 Disable ld --version-script flag if not supported
See https://github.com/brianb/mdbtools/issues/17
Thanks libjpeg-turbo for the script (BSD license)
2012-10-04 14:31:14 +02:00
Nirgal Vourgère
5f09513c85 Deprecate more mdb_{init|remove}_backends
These functions now use the __attribute__((constructor)) & destructor.
Old names were keep for compatibility

Also put __attribute__((deprecated)) in mdbtools.h for all deprecated
functions.
2012-08-09 14:55:17 +02:00
Nirgal Vourgère
1700860912 Work around for missing __attribute((alias))
Some platforms such as OSX 10.7 don't have __attribute((alias)) enabled.
We need a work around there
2012-08-08 16:21:32 +02:00
Nirgal Vourgère
35c28b4efb Added __atribute((deprecated)) when possible 2012-08-08 15:32:00 +02:00
Nirgal Vourgère
272ed28963 No longer using stock menu for custom ones
Avoid stderr warnings about invalid stock objects.
Put proper menu icons
2012-07-31 21:47:37 +02:00
Hans de Goede
c83cdc1b9b Gray close items until file is open
This fixes a double close SEGV
2012-07-28 00:03:30 +02:00
Nirgal Vourgère
e5e299ca3c Simple tabulation cleaning 2012-07-26 21:51:06 +02:00
Nirgal Vourgère
c91950b157 Simple tabulation cleaning 2012-07-26 21:48:12 +02: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
8949bde68f Fixed 2 widget names in tabledef.glade 2012-07-20 12:50:24 +02:00
Nirgal Vourgère
f4a48d0730 Added license to GtkAboutDialog
It is read from the COPYING file that is now copied in glade/ folder.
2012-07-15 00:34:48 +02:00
Nirgal Vourgère
c1fffc5c9e Bumped odbc lib version to 1.1.0: unicode support
Drop some obsolete stuff in src/odbc/Makefile.am
2012-07-14 12:56:21 +02:00
Nirgal Vourgère
2a2f706454 Show all table definition properties in gmdb2
I'm using show/hide for unavailable properties, like there is no input
mask for datetime. But this is not optimal since the sucture of the
window changes too much. We should have a fixed number of items in the
bottom properties table. TODO.
2012-07-08 15:19:08 +02:00
Nirgal Vourgère
f587d30995 Remaining gmdb2 info data from properties
New method mdb_get_catalogentry_by_name()
Bumped libmdb version from 2.0.1 to 2.1.0
2012-07-08 02:24:42 +02:00
Nirgal Vourgère
1ff5d62e30 Fixed double free SEGV in gmdb2 dissector 2012-07-08 00:26:51 +02:00
Nirgal Vourgère
ed2c282bdc One more fix for Access 2007/2010 support 2012-07-07 23:42:23 +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
jakob
88ff1c023e Basic support for Complex Columns (Access 2007+)
The major new feature in Access 2007 where so called complex columns.
These can be multivalued fields, attachments, or MEMO fields with
version history. All of them are implemented using hidden helper tables,
and the column itself has type MDB_COMPLEX (0x12) which is basically a
long int used as a key.

This commit adds basic support for this complex type to libmdb.
2012-07-07 20:23:20 +02:00
Nirgal Vourgère
45de22008f Removed some unused stuff from gmdb2/sql.c 2012-07-07 19:27:54 +02:00
Jean-Michel Vourgère
58cf1baa66 Fixed not null information in gmdb 2012-07-05 01:08:47 +02:00
Jean-Michel Vourgère
d2281b2f35 Redesign of table definition window
New glade file
Migrated from GtkClist to GtkTreeView
Bottom window space for extra information, paving the way for more
properties display.
2012-07-05 00:00:31 +02:00
Jean-Michel Vourgère
07752f716a Added encryption information in props dialog 2012-07-04 16:55:20 +02:00
Jean-Michel Vourgère
39019c8a6f Clean up some unused stuff 2012-07-04 15:11:46 +02:00
Jean-Michel Vourgère
e6937ea306 Refreshed GtkAbout dialog
Added myself to author names
Added Access 2007 as a supported
Updated copyright date
Name property has been renamed to program-name since Gtk 2.12
2012-07-04 12:43:53 +02:00
Jean-Michel Vourgère
f4eb78ef38 Add support for JET5 in properties dialog 2012-07-04 12:41:46 +02:00
Jean-Michel Vourgère
e47923146b Conversion of obsolete GtkCombo to GtkComboBox 2012-07-03 21:17:45 +02:00