Evan Miller
c93156626c
Fix all sign-compare warnings
...
Also flip on -Wsign-compare in the default configuration
2020-08-09 16:15:20 -04:00
Evan Miller
18de0070af
New --disable-glib configure option
...
This option uses the fake GLib shim even when GLib is present on the
system.
2020-08-05 20:36:20 -04:00
Evan Miller
32ec8081b0
Fix build
2020-08-05 08:04:46 -04:00
Evan Miller
40433e3a11
Compile fakeglib into libmdbsql
...
Fixes build error
2020-08-05 00:55:49 -04:00
Evan Miller
2be700826a
Fix build error when strptime is not present
2020-08-04 17:38:07 -04:00
Evan Miller
a9fb4c65d3
Fix strict prototypes warning
2020-08-04 17:35:20 -04:00
leecher1337
135f452407
Merge branch 'master' into master
2017-12-03 17:02:15 +01:00
Nirgal Vourgère
492df3e927
Spelling fixes
...
Thanks lintian
2016-10-24 22:54:13 +02:00
Brian Bruns
23bab7c2d6
add support for LIMIT clause in SQL engine
2016-08-30 08:43:34 -04:00
leecher1337
e2449c11f3
Added strptime function to SQL parser as a feature. This is needed to i.e. be able to query time-fields in DB and to use dates <1.1.1970 and >19.1.2038. All changes should be backwards-compatible to not break existing queries.
2015-08-30 11:23:57 +02:00
leecher1337
16bf355d6b
Added simple support for count(*) to SQL parser to quickly get number of rows in table
2015-08-20 14:35:09 +02:00
William Rogers
4148518906
Freed memory on SQL engine termination
...
Modified mdb_sql_exit to free the memory allocated for the SQL engine in mdb_sql_init
2015-05-24 18:04:14 -05:00
William Rogers
0123d7e1c2
Fixed memory leak - sql->bound_values
...
Memory allocated by mdb_sql_bind_all for sql->bound_values was being leaked at each query execution. Memory is now freed in mdb_sql_reset
2015-05-24 17:12:29 -05:00
Nirgal Vourgère
2a70e16a8b
Allow CFLGAS="-std=c99 -D_POSIX_C_SOURCE=2"
...
Use glib function:
strcasecmp -> g_ascii_strcasecmp
bzero -> memset
strdup -> g_strdump
Don't use arithmetic void*+int
2014-12-28 12:36:55 +01:00
Chris Kerr
2f4b2d12fe
Fixes build error introduced by previous commit
2013-10-13 19:11:10 +01:00
Chris Kerr
2892d519f3
Fix parallel builds (make -jN) in SQL lexer/parser
...
Initial bug repport:
https://bugs.gentoo.org/show_bug.cgi?id=486434
Thanks to Patrick Lauer.
Problem is that generated parser.h is not ready when lexer.l is compiled.
See
https://www.gnu.org/software/automake/manual/html_node/Yacc-and-Lex.html
https://www.gnu.org/software/automake/manual/automake.html#Yacc-and-Lex
2013-10-13 18:57:29 +02:00
Nirgal Vourgère
1213f84859
Fix buffer overflow in sql error message buffer
...
Also use existing buffer when printing to stderr
2013-10-13 09:05:18 +02:00
bokic
bb08d92bfb
FIX: mdb-sql crashed with SIGSEGV in _IO_vfprintf_internal() on amd64
...
https://bugs.launchpad.net/ubuntu/+source/mdbtools/+bug/1227033
2013-10-06 06:23:35 +02:00
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
088493d499
Update autoconf/automake standards
...
Generated files config.guess config.sub depcomp install-sh ltmain.sh missing
and ylwrap have been moved to build-aux/
Ran autoupdate
Replaced AC_TRY_LINK/AC_TRY_COMPILE by AC_LINK_IFELSE/AC_COMPILE_IFELSE
Droped -I$(top_srcdir)/include from CFLAGS since AC_CONFIG_HEADERS already
adds the -I
Fixed bison detection
Added AM_PROG_AR as required by autoreconf -i -Wall
Updated NEWS and .gitignore
2013-07-09 18:39:03 +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
a69281e7bf
Fix memory leak
...
Free sql->cur-table->sargs_tree
Thanks William Rogers.
2013-06-27 13:09:53 +02:00
Nirgal Vourgère
577abe09bf
Code factorisation
...
Call mdb_sql_reset from mdb_sql_exit
This does some harmless extra stuff, like reseting column counts.
Not worth the trouble to code it twice.
2013-06-27 12:28:26 +02:00
William Rogers
04daf7cab5
Memory leak fix
...
Need to free parent in mdb_sql_free_tree
2013-06-27 11:13:39 +02:00
Nirgal Vourgère
473d820239
Replace map files by -export-symbols-regex use
...
We had to support -export-symbols-regex anways
And map file did not really support versions but only list which symbol
to export. So this is more simple.
2012-10-20 14:32:32 +02:00
Nirgal Vourgère
bd9091ce57
Backup --version-script with -export-symbols-regex
...
When ld doesn't support --version-script, use -export-symbols-regex
instead.
2012-10-12 14:33:36 +02:00
Nirgal Vourgère
ea9a4ef1e5
Drop support for SunOS style --version-script
...
Not working, and causes compilation problems on MacOS
2012-10-12 13:30:10 +02:00
Nirgal Vourgère
cca7001f98
Added support for SunOS style --version-script
2012-10-10 18:27:52 +02:00
Nirgal Vourgère
6b6e54bd14
Disable ld --version-script flag if not supported
...
See https://github.com/brianb/mdbtools/issues/17
Thanks libjpeg-turbo for the script (BSD license)
2012-10-04 14:31:14 +02:00
Nirgal Vourgère
e5e299ca3c
Simple tabulation cleaning
2012-07-26 21:51:06 +02:00
Nirgal Vourgère
f6cd70494c
Automatically init/exit libmdb code
...
mdb_init() and mdb_exit() are now deprecated.
2012-07-22 02:29:04 +02:00
Jean-Michel Vourgère
4c470a907d
Remove yacc output files in clean, not distclean
...
libsql yacc output files are generated by make, not configure.
So they should be removed by clean, not distclean.
2012-06-30 21:45:15 +02:00
Jean-Michel Vourgère
1cc4f659e4
Don't generate input & unput in lexer
...
This quiets the compiler warnings about defined but not used functions
2012-06-30 20:15:27 +02:00
Jean-Michel Vourgère
4cc277cbcc
Version 0.7~rc1
2011-09-04 17:18:56 -04:00
Jean-Michel Vourgère
0919ca2a89
More simple map file without revisions. Add ODBCINST*.
2011-09-04 17:15:00 -04:00
Jean-Michel Vourgère
0a76d5716f
Removes many compilation warnings.
2011-08-30 16:11:13 -04:00
Nirgal Vourgre
dd0f4c3819
Patch docs.diff from Nirgal
2011-08-28 19:53:29 -04:00
Nirgal Vourgre
07f915b3c7
Patch utfsql.diff from Nirgal
2011-08-28 19:49:54 -04:00
Nirgal Vourgre
aee657f603
Patch warnings.diff from Nirgal
2011-08-28 19:48:44 -04:00
Brian Bruns
0897cbe612
missing files from abi patch
2011-08-11 10:04:27 -04:00
Brian Bruns
ed0a5b56a6
abi.diff from Nirgal, remove exported symbols
2011-08-10 18:02:24 -04:00
Nirgal
456f261cab
Bunch of fixes for compilation warnings, mostly unused vars.
2011-08-10 18:00:18 -04:00
Brian Bruns
39277312d4
patch 'schema2' from Nirgal Vourgère
2011-02-16 18:58:22 -05:00
Brian Bruns
037b9bc8fc
remove cvsignore and add gitignore per Jeff Smith
2010-11-01 09:30:24 -04:00
root
f8f1b91b7d
report parser errors via mdb_sql_error()
2010-06-20 23:12:32 -04:00
root
fc8ccbeaa8
store last error message in MdbSql struct and show error in gmdb2.
2010-06-20 21:18:22 -04:00
Brian Bruns
cab6d50083
using BUILT_SOURCES creates dependency problem, reverting
2010-06-20 18:12:03 -04:00
Brian Bruns
1eea9754c7
add parser.[ch] to BUILT_SOURCES
2010-06-17 19:18:13 -04:00
Brian Bruns
6befd88462
remove bison generated files
2010-06-17 19:05:03 -04:00
Brian Bruns
b9983c8aad
Debian patch 015-allsyms
2010-06-16 23:29:07 -04:00