Commit Graph
1371 Commits
Author SHA1 Message Date
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
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
Nyall Dawson 05d1b373d5 [odbc] Format boolean values correctly as SQL_C_CHAR (#327)
When a boolean column value is requested as a SQL_C_CHAR value,
correctly return a "1" or "0" string value
2021-08-19 21:21:46 -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 v1.0.0-beta2 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
Nyall Dawson cfbca2af03 Copy date formats when cloning handle (#326)
Fix date format for odbc handles get reset to default date format
for backend when handle is cloned
2021-08-18 22:08:07 -04:00
Evan Miller 33b9dfa52f Version 1.0.0, Beta 1 v1.0.0-beta1 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 v0.9.4 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
Jose Hernandez 4b5ff01a59 Corrected the name of generated PostgreSQL boolean data type (https://www.postgresql.org/docs/13/datatype-boolean.html) 2021-08-01 18:00:28 +01:00
Jose Hernandez f7b13bd4a7 Changed the definition of gssize and fixed some memory leaks following code review. 2021-08-01 17:49:21 +01:00
Jose Hernandez afc6f4888b Added support for name normalisation when generating code for PostgreSQL so that generated artefact names are consistently exported in lowercase. 2021-08-01 15:26:40 +01: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
Jose Hernandez cec507b967 Introduced customised "create table" DDL statements per database type and made table creation statement in PostgreSQL idempotent so that the DDL generated by mdbtools works nicely with database versioning tools such as flyway or liquibase. 2021-07-31 13:34:08 +01: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
Jose Hernandez e713907e37 Ignore the the .idea folder in the project's root directory contains IntelliJ IDE project specific settings files. 2021-07-31 12:05:13 +01: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 v0.9.4-beta1 2021-07-18 14:01:24 -04:00