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
2021-08-04 17:04:49 -04:00
Evan Miller
83cd14fa37
Fix README link
2021-08-04 16:57:36 -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
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
bob620
cf0f5f249c
sql: fix arbitrary path parentheses placement interfering with functions
2021-07-13 16:25:32 -05:00
bob620
f7662e18ea
sql: fix function arbitrary length requirement
2021-07-13 14:41:31 -05: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
Hans de Goede
d1a2f179cc
Fix -Werror=array-bounds compile error in src/odbc/odbc.c
...
Use a local variable instead of casting the address of a SQLSMALLINT
to a (size_t *). sizeof(SQLSMALLINT) < sizeof(size_t) so gcc is
rightfully giving the following errors when building on Fedora 34:
/usr/include/sqlucode.h: In function 'SQLErrorW':
odbc.c:130:20: error: array subscript 'size_t[0]' is partly outside array bounds of 'SQLSMALLINT[1]' [-Werror=array-bounds]
130 | size_t lin=*_lin, lout=*_lout;
| ^~~~~
odbc.c:974:21: note: while referencing 'pcbErrorMsg8'
974 | SQLSMALLINT pcbErrorMsg8;
| ^~~~~~~~~~~~
odbc.c:133:15: error: array subscript 'size_t[0]' is partly outside array bounds of 'SQLSMALLINT[1]' [-Werror=array-bounds]
133 | *_lin -= lin;
| ^~
odbc.c:974:21: note: while referencing 'pcbErrorMsg8'
974 | SQLSMALLINT pcbErrorMsg8;
| ^~~~~~~~~~~~
odbc.c:133:15: error: array subscript 'size_t[0]' is partly outside array bounds of 'SQLSMALLINT[1]' [-Werror=array-bounds]
133 | *_lin -= lin;
| ~~~~~~^~~~~~
odbc.c:974:21: note: while referencing 'pcbErrorMsg8'
974 | SQLSMALLINT pcbErrorMsg8;
| ^~~~~~~~~~~~
cc1: all warnings being treated as errors
2021-07-08 22:16:02 +02:00
Mark Harmstone
e19f278836
mdbtools.h: add mdb_read_next_dpg
2021-06-18 15:57:49 +01: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
Patrick Reynolds
246f854b99
Add backticks around table names in mdb-query
output ( #307 )
...
* Add [brackets] around mdb-query table names
* Allow column and table names to be in brackets
Column and table names can have whitespace in them. The traditional way
to indicate that is with bracket characters, like so:
```sql
SELECT [column name] FROM [table name]
```
This change updates the parser to allow bracket format -- similar to
double-quoted format -- in all NAME contexts, i.e., column names, table
names, and database names.
Co-authored-by: Patrick Reynolds <patrick.reynolds@github.com>
2021-06-02 10:34:35 -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
Benedikt Reinartz
9401d3cd84
Rename function to mdbi_rc4 to prevent it from being exported
2021-05-19 07:45:43 +02: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
Benedikt Reinartz
ee5789ebc7
Review comments
2021-05-18 12:22:51 +02:00
Benedikt Reinartz
5fb273fb60
Fix accidental include
2021-05-17 15:47:59 +02:00
Benedikt Reinartz
89ce71637c
Re-encrypt pages on write
2021-05-17 07:27:49 +02:00
Benedikt Reinartz
873c6a027e
Extract RC4 code to separate file
2021-05-17 07:21:44 +02: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