Commit Graph

139 Commits

Author SHA1 Message Date
Cyber Emissary
104d952cda Merge pull request #6 from jimmytaker/omaster
Use bigger buffer when reading big blobs to increase performance
2018-02-12 15:48:30 -05:00
Cyber Emissary
fd230f68f2 precision and scale were used other way around. Flipped their usage
in all places
2018-02-06 13:10:56 -05:00
leecher1337
135f452407 Merge branch 'master' into master 2017-12-03 17:02:15 +01:00
Ewen McNeill
8b1db6c08e mdb-export: Add boolean words option (TRUE/FALSE)
Adds "-B" (--boolean-words) option to mdb-export, which will reconfigure
mdb/data.c to export TRUE/FALSE for boolean values instead of 1/0.  The
option is needed to support BOOLEAN fields on PostgreSQL, which will not
implicitly cast bare 1/0 into a BOOLEAN value.  Value literals are the
SQL TRUE/FALSE, and _quoted_ words meaning true/false and _quoted_
'1'/'0'.  With this flag the SQL TRUE/FALSE values are output, which should
work with several SQL databases.

PostgreSQL Reference:

http://www.postgresql.org/docs/current/static/datatype-boolean.html
2016-04-07 08:45:06 +12:00
Jimmytaker
55d57c65cf Use bigger buffer when reading big blobs to increase performance 2015-10-06 20:43:10 +02:00
leecher1337
e2449c11f3 Added strptime function to SQL parser as a feature. This is needed to i.e. be able to query time-fields in DB and to use dates <1.1.1970 and >19.1.2038. All changes should be backwards-compatible to not break existing queries. 2015-08-30 11:23:57 +02:00
Jimmytaker
a5e1ab8a2e Fix not being able to handle blobs > 16 MB. Limit now at 256 MB 2014-12-29 14:54:25 +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
Jimmytaker
850d9e169d Fix not being able to handle blobs > 16 MB. Limit now at 256 MB 2014-12-22 20:14:40 +01:00
Jimmytaker
cb65d4f3dd Compiles with VC++ as a .dll. Set up to use static glib, libiconv, libintl for ease of use. 2014-12-22 20:09:43 +01:00
Shane Mc Cormack
a3ab6c7969 Fix for dates in mdb-props 2014-10-18 06:25:54 +02:00
tyzhaoqi
9ab40e83e6 Fix binary outout
Closes issue #44
2014-07-24 08:10:49 +02:00
lovelytwo
a89baeacf5 Segfault fix on memo zero length multiple page
While converting memo field to string, stop processing on zero length multiple
page.
2014-05-02 15:12:16 +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
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
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
Nirgal Vourgère
c91950b157 Simple tabulation cleaning 2012-07-26 21:48:12 +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
Will Daniels
04b6cf5232 Export REPID as string & use char(38) in mysql 2012-06-29 02:28:51 +02:00
Nirgal Vourgre
dd0f4c3819 Patch docs.diff from Nirgal 2011-08-28 19:53:29 -04:00
Nirgal Vourgre
aee657f603 Patch warnings.diff from Nirgal 2011-08-28 19:48:44 -04:00
Nirgal Vourgre
fba597765d Patch wheredate.diff from Nirgal 2011-08-28 19:47:18 -04:00
Nirgal Vourgre
1f2749cdfc Patch bufferdump.diff from Nirgal 2011-08-28 19:43:52 -04:00
Brian Bruns
1f3c04990d numeric patch from Jakob Egger 2011-03-20 15:23:27 -04:00
Brian Bruns
ff251e736f patch 'binaries' from Nirgal Vourgère 2011-02-21 14:11:57 -05:00
Brian Bruns
39277312d4 patch 'schema2' from Nirgal Vourgère 2011-02-16 18:58:22 -05:00
Brian Bruns
fa83ed0af0 patch 'ole' from Nirgal Vourgère 2011-02-16 18:57:40 -05:00
Brian Bruns
5c7e4216fa clean up float length, from Nirgal Vourgère 2011-02-07 22:04:30 -05:00
jakob
82b28d6845 Fixed a bug that would remove the first two digits after the decimal mark in NUMERIC (decimal) fields 2011-01-26 09:55:30 -08:00
Brian Bruns
85be8bbe68 patch 180-slowmap-fallback from Nirgal Vourgère 2010-11-01 09:26:46 -04:00
Brian Bruns
9b87b488a4 revised patch 130-export-smallfloat from Nirgal Vourgère 2010-08-03 19:59:41 -04:00
Brian Bruns
7a073df76e Patch 155-blob from Nirgal Vourgère 2010-06-17 22:12:44 -04:00
Brian Bruns
4fb8786418 Debian patch 130-export-smallfloat from Vincent Fourmond 2010-06-17 19:56:22 -04:00
Brian Bruns
09a82013a3 Debian patch 056-libmdb-data 2010-06-16 23:36:14 -04:00
brianb
c021da2555 fix negative numbers on MDB_INT types 2007-03-17 01:08:52 +00:00
brianb
2d098cd9e9 bug #1463036. do case insensitive compare in mdb_bind_column_by_name() 2007-03-06 00:28:33 +00:00
whydoubt
de1ce907a4 Fixes in reading data into bound fields 2005-11-04 12:12:11 +00:00
whydoubt
54bc9c81c6 Use correct parameter in mdb_col_to_string 2005-10-17 12:11:57 +00:00
whydoubt
eb9bba1d10 Alter buffer_dump's third parameter from 'end' to 'length' 2005-07-02 07:16:04 +00:00
whydoubt
22c3b15218 Use more appropriate types (void *, size_t) 2005-06-28 04:53:37 +00:00
whydoubt
22beb78295 Fix segmentation fault 2005-06-17 02:20:40 +00:00
whydoubt
160418635d Clean up some gcc4 warnings 2005-05-02 12:46:33 +00:00
whydoubt
56e81caf58 Fix a bug in mdb_find_row 2005-03-23 03:51:58 +00:00
whydoubt
a2c849ca8c Clean up some warnings 2005-03-22 13:04:12 +00:00
whydoubt
5926d50e2c Clean up printing of floating-point values 2005-03-19 12:37:11 +00:00
whydoubt
e3df6e8fb7 Improve OLE-related functions 2005-03-16 12:43:01 +00:00
whydoubt
b4d9eb5225 Remove some unused variables 2005-03-13 22:14:06 +00:00
whydoubt
07c9d00283 Fix some issues with mdb_memo_to_string 2005-03-12 03:33:17 +00:00
whydoubt
3153f5dd1e Add mdb_find_row function 2005-03-07 04:28:12 +00:00
whydoubt
937e72c305 Pass malloc'd strings with mdb_col_to_string, et al 2005-02-25 03:27:32 +00:00