Nirgal Vourgère
a7a39a34ee
Refresh help makefiles from gnome-doc-utils
2013-08-11 14:02:02 +02:00
Nirgal Vourgère
4a3f3492cd
Prints "file not found" when that happens
...
... rather than the obscure "Can't alloc filename"
2013-07-18 15:21:14 +02:00
Nirgal Vourgère
95b8b750bc
Droped autoconf hacks caused by AC_CONFIG_HEADERS
2013-07-15 02:55:57 +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
05980343ec
Change to recommanded m4/-style small files
2013-07-15 00:30:21 +02:00
Nirgal Vourgère
a63692312c
Drop autogen.sh: Do use autoconf
...
Automake is changing and some of the stuff in autogen.sh is expected to fail
soon:
https://www.gnu.org/software/automake/manual/html_node/Future-of-aclocal.html
"autoreconf -if" will overwrite the INSTALL file, so its content is now in the
README file.
Added NEWS warning
Adjusted .gitignore
2013-07-14 21:35:06 +02:00
Nirgal Vourgère
5312060544
Changed gmdb2 output filenames to textentries
...
GtkFileChooserButton was cripled by gtk developers so that it now only support
selecting an existing file for overwrite.
https://bugzilla.gnome.org/show_bug.cgi?id=157384
TextEntries is really not user friendly, but it's better than forced overwrite.
2013-07-14 19:06:59 +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
a021708dae
Move the ODBC wide support in its own file
...
Enabling wide functions can break ascii one, like DriveConnect()
2013-07-09 00:54:03 +02:00
Nirgal Vourgère
c908a4f4de
ODBC GetData include \0 if fCType==SQL_C_CHAR
2013-07-08 17:12:47 +02:00
Nirgal Vourgère
3bdff87b9a
ODBC GetData: Add support for a few fCType codes
2013-07-08 17:06:06 +02:00
Nirgal Vourgère
06ea2517e9
ODBC bug fix: reset length location on rebind
2013-07-07 19:42:49 +02:00
Nirgal Vourgère
00a66cc57f
ODBC
...
Check column index ranges
Don't write \0 past buffer in column names
Warn if column name trucated
Repport driver version
2013-07-07 14:26:08 +02:00
Nirgal Vourgère
b728fc1e45
Drop versioning from libmdbodbc
...
Do use libmdbodbc.so, this is a plugin, not a versioned library
2013-07-05 00:30:43 +02:00
Nirgal Vourgère
7495034eef
Fix FSF address in headers
2013-07-04 13:50:33 +02:00
Nirgal Vourgère
ca395d8537
Added --disable-man configure option
...
You want that if you don't have txt2man or just are not interrested
in manuals.
2013-07-04 13:22:52 +02:00
Nirgal Vourgère
36a28cdfdb
Drop old gmdb from repository
2013-07-04 12:05:40 +02:00
Nirgal Vourgère
603bfa365a
Fix warning if large file support is enabled
2013-07-04 11:19:11 +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
Nirgal Vourgère
66b87caf26
ODBC memory management
...
Check proper closure sequence of Statements/Connections/Env
SQLDisconnect now closes automatically all attached statements.
2013-07-03 19:32:53 +02:00
Nirgal Vourgère
aac9c61536
Moved ODBC ConnectParams into struct _hdbc
...
So now struct _hdbc contains the real allocated data.
SQLAllocConnect doesn't hack it anymore with its own stucture.
2013-07-03 13:39:08 +02:00
Nirgal Vourgère
eefddaffcc
Don't distribute mdbprivate.h and mdbodbc.h
...
mdbprivate is.... private.
mdbodbc.h has no reason to be public: People who want to use the plugin
should use the public odbc.h headers. And having this private will permit
hdbc cleanup.
2013-07-03 11:59:28 +02:00
Nirgal Vourgère
54a036d8b2
Merge of HACKING from jahlborn
2013-07-01 14:41:12 +02:00
Nirgal Vourgère
6b24b25454
include odbcinstext.h in connectparams.c
...
This is possible since unixodbc version 2.2.10 as they fixed the including
of local files from public headers.
2013-06-30 15:29:16 +02:00
Nirgal Vourgère
5cc23dd447
Added version in NEWS
...
This was really old news :)
2013-06-29 17:58:15 +02:00
Nirgal Vourgère
6ef7da0597
Disabled schema comments for mysql backend
...
They were using an incorrect syntax
2013-06-29 12:13:09 +02:00
Nirgal Vourgère
6938e3c128
Changed the gmdb warning when SQL is disabled
...
--enable-sql option is no more.
2013-06-28 20:15:39 +02:00
Nirgal Vourgère
7a1637982c
Fix build if yacc is missing
2013-06-28 20:07:44 +02:00
Nirgal Vourgère
8f0f167ab2
Memory leak fix
...
Free temporary variable in mdb_print_indexes
2013-06-28 17:54:30 +02:00
Nirgal Vourgère
687eeebe78
Memory leak fix
...
Need to free previous backend name when changing it.
2013-06-28 16:41:29 +02:00
Nirgal Vourgère
0196d34d7b
__attribute__ change into macro
...
Makes it easier to port to another compiler.
Thanks Jimmy Taker
2013-06-28 01:51:52 +02:00
Nirgal Vourgère
365f7959ed
Fixed password decoding
...
Thanks Jimmy Taker compilation warning.
2013-06-27 23:46:46 +02:00
Nirgal Vourgère
a69281e7bf
Fix memory leak
...
Free sql->cur-table->sargs_tree
Thanks William Rogers.
2013-06-27 13:09:53 +02:00
Nirgal Vourgère
577abe09bf
Code factorisation
...
Call mdb_sql_reset from mdb_sql_exit
This does some harmless extra stuff, like reseting column counts.
Not worth the trouble to code it twice.
2013-06-27 12:28:26 +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
Nirgal Vourgère
ee1978161c
Check outpout buffers in ODBC SQLGetInfo
2013-06-26 00:41:12 +02:00
Nirgal Vourgère
a972c1638d
merge with master
2013-01-14 14:20:10 +01: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
Nirgal Vourgère
5eeb5c5050
Show SQLite support in gmdb2 and manual.
2013-01-13 22:41:10 +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
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
396992f6e1
configure: Quote AC_LANG_PROGRAM for autoconf 2.68
...
Avoid warning in recent autoconf versions. See
http://www.flameeyes.eu/autotools-mythbuster/forwardporting/autoconf.html
2012-10-11 20:32:41 +02:00
Nirgal Vourgère
cca7001f98
Added support for SunOS style --version-script
2012-10-10 18:27:52 +02:00
Nirgal Vourgère
55c52b92bb
Improved man page headers
...
. Fixed titles
. Added version to project name
. Added volume name
2012-10-10 18:26:23 +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
a13e268ee2
New configure option --disable-as-needed
...
Some linkers don't support that option
2012-10-05 15:26:37 +02:00
Nirgal Vourgère
195a818064
Added documentation about need of txt2man
...
You need that for the man pages.
2012-10-05 13:55:20 +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
23cab28913
Documentation how to generate the docbook html
2012-10-04 13:04:22 +02:00
Nirgal Vourgère
e3c9fc01e4
Added note about ldconfig need after make install
...
See https://github.com/brianb/mdbtools/issues/7
2012-08-09 16:19:57 +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
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
7ff13dfada
Added see also isql(1) in mdb-sql(1)
...
That tool offers similar functionality through odbc.
2012-07-21 12:09:01 +02:00
Nirgal Vourgère
8949bde68f
Fixed 2 widget names in tabledef.glade
2012-07-20 12:50:24 +02:00
Nirgal Vourgère
33ebfc8e14
Added AM_MAINTAINER_MODE([enable])
...
See
http://blogs.gnome.org/desrt/2011/09/08/am_maintainer_mode-is-not-cool/
about pros and cons.
Adding that line does not change behavior, it just ease downstream
distribution.
2012-07-20 12:13:37 +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
4667844720
Added -N option in mdb-export man synopsis
2012-07-08 21:52:19 +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:
https://github.com/jakob/mdbtools/commit/a928a36804a29ae059e925a798307d899cdbf612
2012-07-07 21:08:25 +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
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
1db0a89ee2
Removed last compilation warnings, updated TODO
2012-07-02 23:29:05 +02:00
Jean-Michel Vourgère
ce022eb1c7
Add missing prototype: Fixes compiler warning
...
SQLGetPrivateProfileString was not defined before use.
2012-07-02 23:15:57 +02:00
Jean-Michel Vourgère
5e092ba331
Fixed odbc.c compiler warnings
...
Return SQL_ERROR when wanted column is lost
2012-07-02 23:02:35 +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
Jean-Michel Vourgère
8becb3fa6d
Don't try to update index if it is not found
...
This quiets compiler warning about possibly uninitialized var
2012-07-01 12:50:00 +02:00
Jean-Michel Vourgère
4c470a907d
Remove yacc output files in clean, not distclean
...
libsql yacc output files are generated by make, not configure.
So they should be removed by clean, not distclean.
2012-06-30 21:45:15 +02:00
Jean-Michel Vourgère
1cc4f659e4
Don't generate input & unput in lexer
...
This quiets the compiler warnings about defined but not used functions
2012-06-30 20:15:27 +02:00
Jean-Michel Vourgère
2ffd30a858
Fixed array overflow
2012-06-30 15:48:20 +02:00
Jean-Michel Vourgère
eb92c4b73a
Force -Wall compilation flag
2012-06-30 15:40:01 +02:00
Jean-Michel Vourgère
bc704e7575
Renamed configure.in to configure.ac
...
Recent versions of automake prefer configure.ac naming convention
2012-06-30 15:38:55 +02:00
Jean-Michel Vourgère
eaa9af89c3
About to release version 0.7
2012-06-28 23:51:22 +02:00