From 083434c413a6ce3ccc1afb4a4399c7b86da74293 Mon Sep 17 00:00:00 2001 From: brianb Date: Sun, 8 Feb 2004 18:41:06 +0000 Subject: [PATCH] mysql patch --- .cvsignore | 2 +- ChangeLog | 6 ++++++ TODO | 10 +++++----- doc/faq.html | 2 +- doc/install.sgml | 10 +++++----- include/.cvsignore | 3 +++ src/gmdb2/help/C/.cvsignore | 1 + src/libmdb/backend.c | 28 ++++++++++++++++------------ src/sql/.cvsignore | 1 + src/util/.cvsignore | 1 + 10 files changed, 40 insertions(+), 24 deletions(-) diff --git a/.cvsignore b/.cvsignore index 9137b60..a0d52e8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -10,4 +10,4 @@ config.sub libtool ltmain.sh mdbtools.spec - +autom4te.cache diff --git a/ChangeLog b/ChangeLog index bfc4e2c..7e24b1f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Sun Feb 8 13:02:56 EST 2004 Brian Bruns + + * doc/faq.html: update email addy + * doc/userguide.sgml: fix typo + * src/libmdb/backend.c: mysql patch + Fri Feb 6 18:08:59 EST 2004 Brian Bruns * include/mdbtools.h: diff --git a/TODO b/TODO index 451d899..906995e 100644 --- a/TODO +++ b/TODO @@ -19,8 +19,8 @@ libmdb: ones should be static. . Create an API reference for libmdb (maybe some man pages). . Sargs need to support all datatypes -. Need a way to express logical relationships between sargs (tree) -. Add support for index scanning when using sargs +. Need a way to express logical relationships between sargs (done) +. Add support for index scanning when using sargs (partial) . Use allocation maps to read tables, should be more efficient (done) . write support @@ -35,17 +35,17 @@ SQL Engine: . SQL Engine does not handle uppercase keywords (done) . Joins -. OR clauses using sarg trees from above +. OR clauses using sarg trees from above (done) . insert/updates . bogus column name in where clause not caught . const = const type operations not working (e.g. WHERE 0=1) -. list tables/describe table shouldn't directly write to stdout +. list tables/describe table shouldn't directly write to stdout (done, but will blow up on big tables) ODBC: . Figure out why we get unresolved symbols when ODBC driver load by DM (iODBC only?) -. Boolean not working +. Boolean not working (done) . many unimplemented funtions GMDB: diff --git a/doc/faq.html b/doc/faq.html index 5d2cbca..2ebba23 100644 --- a/doc/faq.html +++ b/doc/faq.html @@ -96,7 +96,7 @@ We are currently looking for corrupted Access databases to help with developing

1.10 What's this postcard thing?
-I, like many free software others, enjoy getting postcards from where users live. If you're a happy MDB Tools user (or even a disgruntled one, doesn't really matter) and want to drop me a postcard with a picture of the place you live, email me for my snail-mail address. Come one, you know you want to! +I, like many free software others, enjoy getting postcards from where users live. If you're a happy MDB Tools user (or even a disgruntled one, doesn't really matter) and want to drop me a postcard with a picture of the place you live, email me for my snail-mail address. Come one, you know you want to!
diff --git a/doc/install.sgml b/doc/install.sgml index 7ce0999..e71e9b1 100644 --- a/doc/install.sgml +++ b/doc/install.sgml @@ -2,8 +2,8 @@ ]> - $Date: 2003/01/15 15:16:53 $ - $Revision: 1.2 $ + $Date: 2004/02/08 18:41:07 $ + $Revision: 1.3 $ <productname>MDB Tools</productname> Installation Guide A Guide to Installing and Configuring MDB Tools @@ -34,9 +34,9 @@ This guide is intended to provide help with installing and configuring the A few technical notes. This guide is written in SGML DocBook format, specifications for which are found in the DocBook book. It was converted to HTML with OpenJade. The document you are reading is version -$Revision: 1.2 $ +$Revision: 1.3 $ , dated -$Date: 2003/01/15 15:16:53 $ (CVS control number $Id: install.sgml,v 1.2 2003/01/15 15:16:53 brianb Exp $). The most recent version can be found on the MDB Tools +$Date: 2004/02/08 18:41:07 $ (CVS control number $Id: install.sgml,v 1.3 2004/02/08 18:41:07 brianb Exp $). The most recent version can be found on the MDB Tools web site. @@ -145,7 +145,7 @@ For information on how to use gmdb2, see the manual under the Help menu. Requirements -MDB Tools like any most packages has some requirements for libraries and such on your system. Most of them are optional and will turn off certain features if not present. +MDB Tools like most packages has some requirements for libraries and such on your system. Most of them are optional and will turn off certain features if not present. Requirements Matrix diff --git a/include/.cvsignore b/include/.cvsignore index 282522d..fa6d83e 100644 --- a/include/.cvsignore +++ b/include/.cvsignore @@ -1,2 +1,5 @@ Makefile Makefile.in +config.h.in +config.h +stamp-h1 diff --git a/src/gmdb2/help/C/.cvsignore b/src/gmdb2/help/C/.cvsignore index 3dda729..035f4a5 100644 --- a/src/gmdb2/help/C/.cvsignore +++ b/src/gmdb2/help/C/.cvsignore @@ -1,2 +1,3 @@ Makefile.in Makefile +omf_timestamp diff --git a/src/libmdb/backend.c b/src/libmdb/backend.c index c08e02d..c2b12a0 100644 --- a/src/libmdb/backend.c +++ b/src/libmdb/backend.c @@ -112,22 +112,22 @@ MdbBackendType mdb_postgres_types[] = { }; /* MySQL data types */ MdbBackendType mdb_mysql_types[] = { - {"Mysql_Unknown 0x00",0,0,0}, - {"bit",0,0,0}, - {"char",1,0,1}, - {"smallint",0,0,0}, + {"Text",1,0,1}, + {"char",0,0,0}, + {"int",0,0,0}, + {"int",0,0,0}, {"int",0,0,0}, - {"money",0,0,0}, - {"real",0,0,0}, {"float",0,0,0}, - {"smalldatetime",0,0,0}, - {"Mysql_Unknown 0x09",0,0,0}, + {"float",0,0,0}, + {"float",0,0,0}, + {"date",0,0,1}, + {"varchar",1,0,1}, + {"varchar",1,0,1}, {"varchar",1,0,1}, - {"varbinary",1,0,1}, {"text",1,0,1}, - {"Mysql_Unknown 0x0d",0,0,0}, - {"Mysql_Unknown 0x0e",0,0,0}, - {"Mysql_Unknown 0x0f",0,0,0}, + {"blob",0,0,0}, + {"text",1,0,1}, + {"numeric",1,1,0}, {"numeric",1,1,0}, }; @@ -181,6 +181,10 @@ MdbBackend *backend; backend = (MdbBackend *) g_malloc0(sizeof(MdbBackend)); backend->types_table = mdb_postgres_types; mdb_register_backend(backend, "postgres"); + + backend = (MdbBackend *) g_malloc0(sizeof(MdbBackend)); + backend->types_table = mdb_mysql_types; + mdb_register_backend(backend, "mysql"); } void mdb_register_backend(MdbBackend *backend, char *backend_name) { diff --git a/src/sql/.cvsignore b/src/sql/.cvsignore index 6891df8..243aa08 100644 --- a/src/sql/.cvsignore +++ b/src/sql/.cvsignore @@ -3,6 +3,7 @@ Makefile.in .deps .libs parser.c +lexer.c parser.h *.lo *.la diff --git a/src/util/.cvsignore b/src/util/.cvsignore index b5b8984..9905598 100644 --- a/src/util/.cvsignore +++ b/src/util/.cvsignore @@ -11,6 +11,7 @@ mdb-sql mdb-tables mdb-ver mdb-check +mdb-prop prcat prdata prdump