Commit Graph
100 Commits
Author SHA1 Message Date
Evan Miller 11607108be CI fixes 2025-05-23 07:47:15 -04:00
Evan Miller b81b1c9271 Version 1.0.1
build / linux (clang, disable-glib, disable-iconv) (push) Has been cancelled
build / linux (clang, disable-glib, enable-iconv) (push) Has been cancelled
build / linux (clang, enable-glib, disable-iconv) (push) Has been cancelled
build / linux (clang, enable-glib, enable-iconv) (push) Has been cancelled
build / linux (gcc, disable-glib, disable-iconv) (push) Has been cancelled
build / linux (gcc, disable-glib, enable-iconv) (push) Has been cancelled
build / linux (gcc, enable-glib, disable-iconv) (push) Has been cancelled
build / linux (gcc, enable-glib, enable-iconv) (push) Has been cancelled
build / linux (gcc-10, disable-glib, disable-iconv) (push) Has been cancelled
build / linux (gcc-10, disable-glib, enable-iconv) (push) Has been cancelled
build / linux (gcc-10, enable-glib, disable-iconv) (push) Has been cancelled
build / linux (gcc-10, enable-glib, enable-iconv) (push) Has been cancelled
build / linux (gcc-9, disable-glib, disable-iconv) (push) Has been cancelled
build / linux (gcc-9, disable-glib, enable-iconv) (push) Has been cancelled
build / linux (gcc-9, enable-glib, disable-iconv) (push) Has been cancelled
build / linux (gcc-9, enable-glib, enable-iconv) (push) Has been cancelled
build / macos (clang, disable-glib, disable-iconv) (push) Has been cancelled
build / macos (clang, disable-glib, enable-iconv) (push) Has been cancelled
build / macos (clang, enable-glib, disable-iconv) (push) Has been cancelled
build / macos (clang, enable-glib, enable-iconv) (push) Has been cancelled
build / macos (gcc, disable-glib, disable-iconv) (push) Has been cancelled
build / macos (gcc, disable-glib, enable-iconv) (push) Has been cancelled
build / macos (gcc, enable-glib, disable-iconv) (push) Has been cancelled
build / macos (gcc, enable-glib, enable-iconv) (push) Has been cancelled
build / macos-iodbc (clang, disable-glib) (push) Has been cancelled
build / macos-iodbc (clang, enable-glib) (push) Has been cancelled
build / macos-iodbc (gcc, disable-glib) (push) Has been cancelled
build / macos-iodbc (gcc, enable-glib) (push) Has been cancelled
build / windows (disable-glib, disable-iconv) (push) Has been cancelled
build / windows (disable-glib, enable-iconv) (push) Has been cancelled
build / windows (enable-glib, disable-iconv) (push) Has been cancelled
build / windows (enable-glib, enable-iconv) (push) Has been cancelled
2024-12-26 07:28:56 -05:00
Evan Miller c5d4d1d4ee Fix txt2man path 2024-12-26 07:27:34 -05:00
Evan Miller 7625bfaebf Build fixes 2024-12-26 06:33:37 -05:00
Evan Miller 2b2ef525c8 Fix another brew path on macos CI 2024-05-14 16:09:10 -04:00
Evan Miller 3a954c00d4 Fix brew paths on macos CI 2024-05-14 16:01:41 -04:00
Evan Miller 98d17badc6 Install unixodbc on macos CI 2024-05-14 14:24:51 -04:00
Evan Miller 997f4ec846 Install libtool on macos CI 2024-05-14 14:20:16 -04:00
Evan Miller 57d9e7a65e Fix iodbc path on macos GH action (#421) 2023-09-10 14:16:02 -04:00
Evan Miller d9025dbf22 Two more code pages 2023-04-27 20:36:22 -04:00
Evan Miller 9aa68a6ba1 Fix macos-iodbc CI build 2023-02-02 05:35:21 -05:00
Evan Miller f7ae5e3f3c Require glib2 2.68 or later (for g_memdup2) (#400) 2022-12-17 07:08:44 -05:00
Evan Miller f14fbea093 Fix C89 errors 2022-12-17 05:41:45 -05:00
Evan Miller d54f7b669f update gitignore 2022-12-17 05:36:26 -05:00
Evan Miller 0b96ecaff1 Fix windows GH action (#399) 2022-12-17 05:33:40 -05:00
Evan Miller 9e1ec2a588 Merge pull request #394 from h3xx/fix-bash-completion
Fix wrongly installed mdb-sql completion script
2022-08-26 08:26:57 -04:00
Evan Miller ab5beff0fa Merge pull request #381 from schaanie17/dev
Changed mapping of MDB_DOUBLE for MySQL from float to double
2022-03-08 12:14:46 -08:00
Evan Miller ff085816b2 Merge pull request #377 from jwrdegoede/oss-fuzz-35972-null-ptr-deref-fix
Always check mdb_read_table() return value
2022-01-25 10:46:43 -05:00
Evan Miller 2da65ffdb3 Merge pull request #376 from jwrdegoede/oss-fuzz-36187-null-ptr-deref-fix
Fix null-ptr deref when table->map_sz is 0
2022-01-25 10:24:14 -05:00
Evan Miller ab9e4088a9 Merge branch 'dev' 2021-10-24 09:17:04 -04:00
Evan Miller 1f88aac676 Version 1.0.0 2021-10-24 09:05:19 -04:00
Evan Miller c3df30837e Fix appveyor build 2021-09-30 09:59:16 -04:00
Evan Miller 5946750058 Version 1.0.0, Beta 7 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 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 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
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
Evan Miller 2aea0e2e41 Version 1.0.0, Beta 4 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
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 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
Evan Miller 89c7aa27b4 Fix create/drop incorrect argument order
Fixes #328
2021-08-20 08:03:44 -04:00
Evan Miller 148eed1546 Fix pkg-config Cflags
Previously we needed the cflags to include the original HAVE_ICONV value
so that MdbHandle looked the same to client applications as it did to
the compiled library. Now we use a .in file for the header so that these
definitions are not necessary when the client is compiling.
2021-08-20 07:24:40 -04:00
Evan Miller 3ad1669b2e Restore previous MdbHandle struct layout 2021-08-20 07:20:50 -04:00
Evan Miller 45dcdbc5a6 Fix AC_PROG_LEX warning with autoconf 2.70 2021-08-19 18:23:37 -04:00
Evan Miller 0f0ecb0202 Clean up configure.ac 2021-08-19 18:23:20 -04:00
Evan Miller 00e4437a17 Git-ignore generated header 2021-08-19 08:11:30 -04:00
Evan Miller e8c40a136d Version 1.0.0, Beta 2 2021-08-19 07:58:28 -04:00
Evan Miller ff2e421ab3 Add ax_tls.m4 2021-08-19 07:47:12 -04:00
Evan Miller c1bb53d930 Ensure compiler supports thread-local storage 2021-08-19 07:44:19 -04:00
Evan Miller 7fb7660b09 Restore previous mdb_register_backend API
Add new mdbi_register_backend2 function with the features introduced in
PRs #321 and #322. The purpose is to prevent API/ABI breakage in the
1.0 release.
2021-08-19 06:23:16 -04:00
Evan Miller 33b9dfa52f Version 1.0.0, Beta 1 2021-08-04 17:04:49 -04:00
Evan Miller 83cd14fa37 Fix README link 2021-08-04 16:57:36 -04:00
Evan Miller 05cb0449db Version 0.9.4, final 2021-08-04 16:52:37 -04:00
Evan Miller 4143f34706 Install ODBC drivers to odbc/ subdirectory
See #315
2021-08-04 16:29:31 -04:00
Evan Miller 7791c74246 README fixes 2021-08-04 16:13:09 -04:00
Evan Miller d5a42d9fed Bump _XOPEN_SOURCE to 700
This allows locale_t to be defined on Linux.
2021-08-04 16:06:47 -04:00
Evan Miller c866b04b74 Fix Linux build 2021-08-04 15:59:17 -04:00
Evan Miller a803abe1cf Change #if to #ifdef in a couple places 2021-08-04 15:55:20 -04:00
Evan Miller 2a58435fbf Fix build 2021-08-04 15:39:09 -04:00
Evan Miller 12a888988d Update README and deprecate mdb-hexdump 2021-08-04 15:33:43 -04:00
Evan Miller e88e3cc7e7 Remove HAVE_ macros from mdbtools.h and mdbsql.h
Generate mdbtools.h at configure-time. This ensures that the public
interface matches the compiled structures.

See #316
2021-08-04 15:29:23 -04:00
Evan Miller a44a8ed8ae Postgres-style ILIKE operator (with Unicode support) (#244)
Access's `LIKE` is actually case-insensitive, but to prevent breaking existing
programs that rely on mdbtools' case-sensitive behavior, introduce a new
`ILIKE` operator to perform a case-insensitive match. Use GLib's `g_utf8_casefold`
to make the comparison UTF-8 aware. A "poor man's" version is implemented
in fakeglib, which relies on `towlower`, and won't work with multi-grapheme
case transformations (e.g. German Eszett).

Fixes #233
2021-08-04 14:45:31 -04:00
Evan Miller 1b147b8d29 Merge pull request #276 from mdbtools/no-sql
Don't build/install mdb-sql if SQL is not supported
2021-08-04 14:12:20 -04:00
Evan Miller 12643bd95b Merge pull request #310 from maharmstone/mdb_read_next_dpg
mdbtools.h: add mdb_read_next_dpg
2021-08-04 14:10:58 -04:00
Evan Miller 930f234f05 Merge pull request #322 from doraemoncito/name-normalization
Added support for name normalisation when generating code for PostgreSQL
2021-08-01 15:06:07 -04:00
Evan Miller ce4cf5acbf Merge pull request #321 from doraemoncito/custom-create-table-statements-standalone
Introduced customised "create table" DDL statements per database type.
2021-07-31 08:49:13 -04:00
Evan Miller a73202c8df Merge pull request #320 from doraemoncito/ignore-intellij-idea-state-files
Ignore the the .idea folder in the project's root directory contains IntelliJ IDE project specific settings files.
2021-07-31 07:39:24 -04:00
Evan Miller 8692586205 Merge branch 'dev' into no-sql 2021-07-24 11:34:25 -04:00
Evan Miller 3cc0871339 Only install libmdbsql.pc if libmdbsql is built 2021-07-24 11:33:33 -04:00
Evan Miller f3053fbd45 MDB Tools 0.9.4, Beta 1 2021-07-18 14:01:24 -04:00
Evan Miller 9fe8c43ab8 Remove obsolete AC_HEADER_STDC macro 2021-07-17 10:35:00 -04:00
Evan Miller f79f942d1f Fix RC4 decryption on big-endian platforms 2021-07-17 10:13:24 -04:00
Evan Miller 45779d03ff Merge pull request #319 from Bob620/dev
sql: Properly handle arbitrary parentheses placements in PATH breaking SELECT functions
2021-07-14 12:41:59 -04:00
Evan Miller fe77bc5c8e Remove uses of ntohl 2021-07-14 09:33:24 -04:00
Evan Miller 398d46577a Merge pull request #313 from jwrdegoede/fedora34-compile-fix
Fix -Werror=array-bounds compile error in src/odbc/odbc.c
2021-07-08 16:53:02 -04:00
Evan Miller 2be2ab711e Remove tautological comparison
Fixes warnings with some versions of GCC
2021-06-10 09:50:51 -04:00
Evan Miller d72e6381fe Fix build on some ancient systems 2021-06-03 10:05:18 -04:00
Evan Miller a31a95056d Simplify logic 2021-06-02 09:16:55 -04:00
Evan Miller 6136252a85 Merge pull request #306 from mdbtools/issue-301
Set _XOPEN_SOURCE to 600
2021-05-19 10:09:15 -04:00
Evan Miller aeda51440a Merge pull request #305 from filmor/write-encrypted-pages
Write encrypted pages
2021-05-19 10:08:54 -04:00
Evan Miller 3e11f6dc26 Set _XOPEN_SOURCE to 600. Fixes #301
Some platforms including RHEL need _XOPEN_SOURCE to be defined as a
particular value. 600 seems to be a popular choice.
2021-05-18 14:01:01 -04:00
Evan Miller 373b7ff4c4 Version 0.9.3, final 2021-05-01 07:03:58 -04:00
Evan Miller e52c47d561 MDB Tools 0.9.3, Beta 4 2021-04-25 13:25:57 -04:00
Evan Miller 31a075e08b Remove function pointer casts 2021-04-25 11:23:38 -04:00
Evan Miller e796ac173a Merge pull request #299 from filmor/patch-1
Adjust loop callback signatures (improve emscripten compatibility)
2021-04-25 11:22:46 -04:00
Evan Miller 74fd4b1ff9 MDB Tools 0.9.3, Beta 3 2021-04-16 13:43:03 -04:00
Evan Miller 05bee0c69f Remove unnecessary _XOPEN_SOURCE
This was originally intended to expose strptime, which is no longer
(never?) used  by data.c
2021-04-16 13:04:40 -04:00
Evan Miller ceb65d6ece Conditionally define _XOPEN_SOURCE
Fixes #298
2021-04-13 07:19:19 -04:00
Evan Miller a47224bb80 Version 0.9.3, Beta 2 2021-04-08 14:59:50 -04:00
Evan Miller fe0175aa63 Migrate to g_memdup2 (#288)
With fakeglib and older versions of GLib, fall back to g_memdup with
a #define inside mdbprivate.h.

Fixes #287
2021-04-05 09:04:29 -04:00