Commit Graph

55 Commits

Author SHA1 Message Date
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
Nirgal Vourgère
6ef7da0597 Disabled schema comments for mysql backend
They were using an incorrect syntax
2013-06-29 12:13:09 +02:00
Nirgal Vourgère
8f0f167ab2 Memory leak fix
Free temporary variable in mdb_print_indexes
2013-06-28 17:54:30 +02:00
Nirgal Vourgère
687eeebe78 Memory leak fix
Need to free previous backend name when changing it.
2013-06-28 16:41:29 +02:00
Nirgal Vourgère
0196d34d7b __attribute__ change into macro
Makes it easier to port to another compiler.
Thanks Jimmy Taker
2013-06-28 01:51:52 +02:00
Jimmytaker
46005ae009 MDB_DEPRECATED redefined, Constructor MACRO, generate_table_schema changed to not static, date_fmt to ISODate
__attribute__ does not exist in Visual Studio. Therefore replaced wherever it appeared with a macro:
Redefines MDB_DEPRECATED to support Visual Studio
Define a Constructor MACRO so that __attribute__((constructor/destructor)) behavior is achieved in Visual Studio.

Just using generate_table_schema through mdb_print_schema deletes the purpose of a very good tool. generate_table_schemas is a rewrite of generate_table_schema but sends the data to a char* instead of FILE*. There is NO fmemopen() or similar in Visual Studio, so there is NO way to access memory through a FILE* except for first writing to the disk and then reading from the disk in memory.

I cannot suggest how to handle the case when td == 0 for the dates. The databases I work with often have just 00:00:00 in the DateTime column which is not consistent with the rest of the column either, but I have to deal with it somehow.

Leaving void* where char* is needed as a function parameter returns a compilation error in Visual Studio.
2013-01-14 19:27:53 +01:00
Nirgal Vourgère
a972c1638d merge with master 2013-01-14 14:20:10 +01:00
Nirgal Vourgère
eeadcb54f3 Use macros for depreacated function attributes
This will help porting on compilers that don't support it
2013-01-13 23:50:42 +01:00
Jimmytaker
c9f602480b Code cleanup
Enforce consistency g_malloc - g_free and malloc - free
Move var declarations on top of functions
2013-01-13 23:17:07 +01:00
Jimmytaker
70c6fb7551 Added support for sqlite 2013-01-13 22:32:31 +01:00
Jimmytaker
6df0aa6ce0 Port to Windows and SQLite Extension 2012-12-31 20:40:12 +01:00
Nirgal Vourgère
5f09513c85 Deprecate more mdb_{init|remove}_backends
These functions now use the __attribute__((constructor)) & destructor.
Old names were keep for compatibility

Also put __attribute__((deprecated)) in mdbtools.h for all deprecated
functions.
2012-08-09 14:55:17 +02:00
Will Daniels
04b6cf5232 Export REPID as string & use char(38) in mysql 2012-06-29 02:28:51 +02:00
Nirgal Vourgère
7634e329c7 Renamed namespace into dbnamespace: C++ keyword 2012-02-11 18:38:43 +01:00
Nirgal Vourgre
dd0f4c3819 Patch docs.diff from Nirgal 2011-08-28 19:53:29 -04:00
Nirgal Vourgre
8ef50c444e Patch nosanitize.diff form Nirgal 2011-08-28 18:56:03 -04:00
Nirgal
529534dae5 Oracle numeric types 2011-08-10 18:00:18 -04:00
Nirgal
456f261cab Bunch of fixes for compilation warnings, mostly unused vars. 2011-08-10 18:00:18 -04:00
Brian Bruns
3280842de1 boolean default patch from Nirgal Vourgère 2011-03-20 15:33:26 -04:00
Brian Bruns
91cd0b7475 fix comments for mysql from Dmitry Nikitin 2011-03-20 15:24:56 -04:00
Brian Bruns
d794c6e2a1 patch default_values from Nirgal Vourgère 2011-02-16 18:59:25 -05:00
Brian Bruns
39277312d4 patch 'schema2' from Nirgal Vourgère 2011-02-16 18:58:22 -05:00
Brian Bruns
0eea4c148f patch schema-indexes from Nirgal Vourgère 2011-02-16 18:57:05 -05:00
Brian Bruns
4f73e1b295 patch from Terry Brown <terry_n_brown at yahoo.com> to not sanitize the schema in mdb-schema 2010-08-03 20:04:29 -04:00
Brian Bruns
87af69a15e Debian patch 170-sequences from Nirgal Vourgère 2010-06-20 16:30:47 -04:00
Brian Bruns
f2bc2e1a21 Debian patch 160-foreign-keys from Nirgal Vourgère 2010-06-20 16:28:54 -04:00
Brian Bruns
30e5a6f4bb Debian patch 150-backend-quote from Nirgal Vourgère 2010-06-20 16:27:42 -04:00
Brian Bruns
7a073df76e Patch 155-blob from Nirgal Vourgère 2010-06-17 22:12:44 -04:00
Brian Bruns
625c588cdf Debian patch 100-postgres-types from Nirgal Vourgère 2010-06-17 19:02:28 -04:00
whydoubt
8b9438dff5 Make backend_name parameter a const char * 2005-10-17 12:04:34 +00:00
whydoubt
e0cb6caa73 Clean up some gcc4 warnings and errors 2005-04-29 03:08:12 +00:00
calvinrsmith
ad597b1d75 *** keyword substitution change *** 2005-01-15 05:02:04 +00:00
whydoubt
d06cb3e47d Combine functions that bind a column and its length 2004-12-31 01:26:28 +00:00
whydoubt
40f3afdbb7 Fixes based on 'gcc -W -Wall' warnings 2004-07-03 04:56:07 +00:00
whydoubt
3d47cc5570 Add function mdb_read_table_by_name 2004-07-02 12:29:09 +00:00
whydoubt
2b326e7e2c Add gtkdoc to various functions 2004-06-22 04:27:42 +00:00
whydoubt
402e6be097 Major revisions to 'backend' code 2004-06-11 13:56:39 +00:00
whydoubt
b14de7135e malloc to g_malloc for backend functions 2004-05-29 19:18:57 +00:00
brianb
341fc9d4ef free backend structures on exit 2004-04-12 14:33:56 +00:00
brianb
fed589b2e7 rework of patch #879693 to support 0=1 in where clause 2004-02-08 21:54:20 +00:00
brianb
4a56f06da9 missed one line of mysql patch 2004-02-08 18:43:17 +00:00
brianb
083434c413 mysql patch 2004-02-08 18:41:06 +00:00
brianb
a74094c667 sync up, see ChangeLog for details 2004-02-06 02:34:20 +00:00
brianb
278cf8ef42 fix compiler warnings in libmdb/ util/ sql/ 2004-01-10 01:52:56 +00:00
brianb
11b43644dc patches 00-14 from David Mansfield 2004-01-06 00:42:07 +00:00
brianb
75216d7a90 index work
dmalloc headers
mem leak fixes
start on i18n
2003-01-28 23:51:06 +00:00
brianb
092e2b79af query planner stuff
some gcc -Wall fixes
added suport for _ in identifier names in SQL
gmdb2 manual additions
2003-01-20 16:04:24 +00:00
brianb
0cf1a2242d jet 4 changes 2002-12-10 23:35:24 +00:00
brianb
9b8285d937 change catalogentry to GPtrArray, documentation fixes, add ifdef wrapper to mdbsql.h 2002-03-27 13:00:00 +00:00