Andy Reagan
196bcbfbff
Remove whitespace changes.
2021-12-06 11:44:36 -05:00
Andy Reagan
7149187745
Need glib for osx builds with --enable-glib.
2021-12-06 11:20:30 -05:00
Andy Reagan
aa4e29f985
Error print.
2021-12-06 10:48:21 -05:00
Andy Reagan
88caaa2004
Improve memory allocation following pattern in mdb_col_to_string.
2021-12-06 09:44:30 -05:00
Andy Reagan
57cd54f654
Better idea, return empty string at mdb_date_to_string().
2021-12-03 15:35:51 -05:00
Andy Reagan
898e880e87
Retain a limit on both ends, mark where we might return a null instead.
2021-12-03 15:23:31 -05:00
Andy Reagan
c6ab656741
Undo whitespace changes, add comment.
2021-12-03 11:33:27 -05:00
Andy Reagan
0a012235e8
Ignore the test directory.
2021-12-03 11:30:28 -05:00
Andy Reagan
6ccb802c67
Fix pre-1900 date bug #367 and add test.
2021-12-03 09:38:55 -05:00
pedromorgan@gmail.com
bcad261464
remove *.css.map
2021-11-24 10:41:48 -05:00
Evan Miller
1f88aac676
Version 1.0.0
v1.0.0
2021-10-24 09:05:19 -04:00
Evan Miller
c3df30837e
Fix appveyor build
2021-09-30 09:59:16 -04:00
Christian Ehrhardt
22c379a611
Fix gcc-11 error "directive argument is null"
...
mdbtools triggered
In function ‘printf’,
inlined from ‘mdb_dump_catalog’ at catalog.c:195:4:
/usr/include/powerpc64le-linux-gnu/bits/stdio2.h:112:10:
error: ‘%-12s’ directive argument is null [-Werror=format-overflow=]
112 | return __printf_chk (__USE_FORTIFY_LEVEL - 1, __fmt, __va_arg_pack ());
This is due to mdb_get_objtype_string potentially returning NULL
which isn't allowed anymore as it would cause a segfault on the latter
print.
Fixes : #352
Signed-off-by: Christian Ehrhardt <christian.ehrhardt@canonical.com >
2021-09-30 08:19:53 -04:00
Evan Miller
5946750058
Version 1.0.0, Beta 7
v1.0.0-beta7
2021-09-29 15:53:46 -04:00
Evan Miller
5ddad8660b
Clarify some bit-shifting casts
2021-09-29 09:20:24 -04:00
Evan Miller
6de0227a36
Fix export of byte field values >127
...
Regression introduced in v0.9.3-beta1. Fixes #350
2021-09-29 09:16:22 -04:00
Evan Miller
b0a1f00113
Version 1.0.0, Beta 6
v1.0.0-beta6
2021-09-12 16:00:21 -04:00
Evan Miller
77ee311eec
Rearrange some ODBC code
...
Move unixODBC specific code to its own source file, and support old
iODBC installations that have only iodbinst.h.
2021-09-08 11:07:17 -04:00
Evan Miller
c04a3fb9a7
Merge branch 'dev' of github.com:mdbtools/mdbtools into dev
2021-09-08 10:58:30 -04:00
Evan Miller
ee5834d239
Print deprecation warnings before usage info
2021-09-08 10:50:28 -04:00
Evan Miller
f0d435ecdb
Use TLS macro for cross-platform thread-local storage
2021-09-08 09:09:03 -04:00
Evan Miller
c137d64d13
Improved bounds checking
2021-09-08 06:41:58 -04:00
Evan Miller
4369721363
ODBC: Support SQL_C_WCHAR target type. Fixes #347
...
Also remove SQLFetchW and SQLGetDataW since they are not documented
in any other ODBC drivers.
2021-09-08 06:15:59 -04:00
Evan Miller
30d55a87ef
Version 1.0.0, Beta 5
v1.0.0-beta5
2021-09-06 15:22:23 -04:00
Evan Miller
a0e72c5dfa
Implement SQLFetchW
...
Fixes #347
2021-09-06 15:09:46 -04:00
Evan Miller
16b2970931
Merge pull request #344 from nyalldawson/repid_odbc_str2
...
Customizable UUID format with mdb_uuid_to_string_fmt()
2021-08-30 09:17:25 -04:00
Nyall Dawson
98ef4a1663
[odbc] Ensure repid field formatting matching Microsoft Access ODBC
...
driver formatting of these fields (i.e. without surrounding {} braces)
2021-08-30 09:34:29 +10:00
Evan Miller
92dc91bfe8
Merge pull request #343 from nyalldawson/fix_index_read_errors
...
Fix accidental reads of non-index data as indices
2021-08-29 07:20:27 -04:00
Evan Miller
9b57c3ff66
Merge pull request #342 from nyalldawson/fix_double_conversion
...
Fix incorrect conversion of double values
2021-08-29 07:14:36 -04:00
Nyall Dawson
d94796d79b
Fix accidental reads of non-index data as indices
...
Follow up be2a287f5c - it's hard to be sure from the commit message,
but I suspect the intention here was to reduce the number of indices
read in that particular situation, instead of allowing replacing
the number of real indices read direct from the table definition
with a larger number.
In any case, omitting a possible index definition which exists
is a safer approach then trying to read an index from non-index data.
Fixes #335
2021-08-29 16:22:34 +10:00
Nyall Dawson
dccc88b722
Fix incorrect conversion of double values
...
Fixes #339
2021-08-29 15:31:00 +10:00
Nyall Dawson
4c61f2d49b
Handle sql queries where a double constant value has a trailing .
...
with no extra digits, e.g. "my_double_col" = 123.
2021-08-26 23:54:06 -04:00
Nyall Dawson
036f9b95c6
Handle sql queries where a double column is compared to an int
...
eg "my_double_column" = 123
2021-08-26 23:54:06 -04:00
Nyall Dawson
f4ca6b9e57
Handle sql queries where an integer column is compared to a double value
...
(e.g. "my_int_column" = 123.0)
2021-08-26 23:54:06 -04:00
Nyall Dawson
f557e6525b
Better error output
2021-08-26 23:49:11 -04:00
Nyall Dawson
fa336fd325
Handle sql queries using REP_ID columns
2021-08-26 20:17:39 -04:00
Evan Miller
2aea0e2e41
Version 1.0.0, Beta 4
v1.0.0-beta4
2021-08-25 08:49:57 -04:00
Evan Miller
6faf1b8615
Merge pull request #333 from mdbtools/odbc-sans-iconv
...
Remove iconv from ODBC Unicode driver
2021-08-25 08:34:48 -04:00
Evan Miller
ddd1be91a8
iconv fixes
2021-08-24 19:36:34 -04:00
Evan Miller
41d2a797ab
Check for mbstowcs_l separately
2021-08-24 15:15:34 -04:00
Evan Miller
0164b4df1a
Move Unicode ODBC functions to separate file (remove ODBC's iconv)
...
Use wcstombs and friends to perform Unicode conversion inside the ODBC
driver. Functionality should be identical as before, except that
installations without iconv will now be able to compile and install the
Unicode (libmdbodbcW) driver.
iconv remains present in the main libmdb library.
2021-08-23 13:39:39 -04:00
Evan Miller
00d597b6d3
Simplify header
2021-08-22 21:33:33 -04:00
Evan Miller
d3eea5f38e
Simplify some locale_t code
2021-08-22 12:20:13 -04:00
Evan Miller
d1369407c5
--disable-iconv configure option
2021-08-22 11:36:31 -04:00
Evan Miller
0346f00735
Report iconv support at end of configure
2021-08-22 07:38:20 -04:00
Nyall Dawson
fadd536e2e
Add support for <> SQL operator ( #329 )
2021-08-22 00:28:29 -04:00
Evan Miller
6a15f6b1e6
Fix issue number in NEWS file
2021-08-20 08:34:31 -04:00
Evan Miller
f9c11b52cf
Version 1.0.0, Beta 3
v1.0.0-beta3
2021-08-20 08:29:13 -04:00
Evan Miller
49ee8272ab
Remove _GNU_SOURCE (rely on AC_USE_SYSTEM_EXTENSIONS)
2021-08-20 08:23:24 -04:00
Evan Miller
f71924dab6
Use AC_USE_SYSTEM_EXTENSIONS
...
Defining _XOPEN_SOURCE explicitly in the source file leads to all kinds
of cross-platform headaches, plus incompatibilities between
configure-time capabilities and compile-time features. Let autoconf sort
out how to expose the largest number of functions in a way that is
consistent between configuration and compilation.
2021-08-20 08:06:19 -04:00