mysql patch

This commit is contained in:
brianb
2004-02-08 18:41:06 +00:00
parent ab82227578
commit 083434c413
10 changed files with 40 additions and 24 deletions

View File

@@ -10,4 +10,4 @@ config.sub
libtool libtool
ltmain.sh ltmain.sh
mdbtools.spec mdbtools.spec
autom4te.cache

View File

@@ -1,3 +1,9 @@
Sun Feb 8 13:02:56 EST 2004 Brian Bruns <brian@bruns.com>
* 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 <brian@bruns.com> Fri Feb 6 18:08:59 EST 2004 Brian Bruns <brian@bruns.com>
* include/mdbtools.h: * include/mdbtools.h:

10
TODO
View File

@@ -19,8 +19,8 @@ libmdb:
ones should be static. ones should be static.
. Create an API reference for libmdb (maybe some man pages). . Create an API reference for libmdb (maybe some man pages).
. Sargs need to support all datatypes . Sargs need to support all datatypes
. Need a way to express logical relationships between sargs (tree) . Need a way to express logical relationships between sargs (done)
. Add support for index scanning when using sargs . Add support for index scanning when using sargs (partial)
. Use allocation maps to read tables, should be more efficient (done) . Use allocation maps to read tables, should be more efficient (done)
. write support . write support
@@ -35,17 +35,17 @@ SQL Engine:
. SQL Engine does not handle uppercase keywords (done) . SQL Engine does not handle uppercase keywords (done)
. Joins . Joins
. OR clauses using sarg trees from above . OR clauses using sarg trees from above (done)
. insert/updates . insert/updates
. bogus column name in where clause not caught . bogus column name in where clause not caught
. const = const type operations not working (e.g. WHERE 0=1) . 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: ODBC:
. Figure out why we get unresolved symbols when ODBC driver load by DM (iODBC . Figure out why we get unresolved symbols when ODBC driver load by DM (iODBC
only?) only?)
. Boolean not working . Boolean not working (done)
. many unimplemented funtions . many unimplemented funtions
GMDB: GMDB:

View File

@@ -96,7 +96,7 @@ We are currently looking for corrupted Access databases to help with developing
</p> </p>
</dd></dl> </dd></dl>
<dl><a name="postcards"></a><dt><b>1.10 What's this postcard thing?</b></dt><dd> <dl><a name="postcards"></a><dt><b>1.10 What's this postcard thing?</b></dt><dd>
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 <a href="mailto:camber@ais.org">me</a> 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 <a href="mailto:brian@nospam.bruns.com">me</a> for my snail-mail address. Come one, you know you want to!
</dd></dl> </dd></dl>
</body></html> </body></html>

View File

@@ -2,8 +2,8 @@
]> ]>
<book> <book>
<bookinfo> <bookinfo>
<date>$Date: 2003/01/15 15:16:53 $</date> <date>$Date: 2004/02/08 18:41:07 $</date>
<releaseinfo>$Revision: 1.2 $</releaseinfo> <releaseinfo>$Revision: 1.3 $</releaseinfo>
<title><productname>MDB Tools</productname> Installation Guide</title> <title><productname>MDB Tools</productname> Installation Guide</title>
<subtitle>A Guide to Installing and Configuring <productname>MDB Tools</productname></subtitle> <subtitle>A Guide to Installing and Configuring <productname>MDB Tools</productname></subtitle>
<author> <author>
@@ -34,9 +34,9 @@ This guide is intended to provide help with installing and configuring the <prod
<para> <para>
A few technical notes. This guide is written in SGML DocBook format, specifications for which are found in the <ulink url="http://www.docbook.org/tdg/en/html/docbook.html">DocBook book</ulink>. It was converted to HTML with <ulink url="http://openjade.sourceforge.net">OpenJade</ulink>. A few technical notes. This guide is written in SGML DocBook format, specifications for which are found in the <ulink url="http://www.docbook.org/tdg/en/html/docbook.html">DocBook book</ulink>. It was converted to HTML with <ulink url="http://openjade.sourceforge.net">OpenJade</ulink>.
The document you are reading is version The document you are reading is version
$Revision: 1.2 $ $Revision: 1.3 $
, dated , 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 <productname>MDB Tools</productname> $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 <productname>MDB Tools</productname>
<ulink url="http://mdbtools.sourceforge.net/userguide/">web site</ulink>. <ulink url="http://mdbtools.sourceforge.net/userguide/">web site</ulink>.
</para> </para>
</preface> </preface>
@@ -145,7 +145,7 @@ For information on how to use gmdb2, see the manual under the Help menu.
<chapter id="requirements"> <chapter id="requirements">
<title>Requirements</title> <title>Requirements</title>
<para> <para>
<productname>MDB Tools</productname> 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. <productname>MDB Tools</productname> 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.
</para> </para>
<sect1 id="reqtable"> <sect1 id="reqtable">
<title>Requirements Matrix</title> <title>Requirements Matrix</title>

View File

@@ -1,2 +1,5 @@
Makefile Makefile
Makefile.in Makefile.in
config.h.in
config.h
stamp-h1

View File

@@ -1,2 +1,3 @@
Makefile.in Makefile.in
Makefile Makefile
omf_timestamp

View File

@@ -112,22 +112,22 @@ MdbBackendType mdb_postgres_types[] = {
}; };
/* MySQL data types */ /* MySQL data types */
MdbBackendType mdb_mysql_types[] = { MdbBackendType mdb_mysql_types[] = {
{"Mysql_Unknown 0x00",0,0,0}, {"Text",1,0,1},
{"bit",0,0,0}, {"char",0,0,0},
{"char",1,0,1}, {"int",0,0,0},
{"smallint",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}, {"float",0,0,0},
{"smalldatetime",0,0,0}, {"float",0,0,0},
{"Mysql_Unknown 0x09",0,0,0}, {"float",0,0,0},
{"date",0,0,1},
{"varchar",1,0,1},
{"varchar",1,0,1},
{"varchar",1,0,1}, {"varchar",1,0,1},
{"varbinary",1,0,1},
{"text",1,0,1}, {"text",1,0,1},
{"Mysql_Unknown 0x0d",0,0,0}, {"blob",0,0,0},
{"Mysql_Unknown 0x0e",0,0,0}, {"text",1,0,1},
{"Mysql_Unknown 0x0f",0,0,0}, {"numeric",1,1,0},
{"numeric",1,1,0}, {"numeric",1,1,0},
}; };
@@ -181,6 +181,10 @@ MdbBackend *backend;
backend = (MdbBackend *) g_malloc0(sizeof(MdbBackend)); backend = (MdbBackend *) g_malloc0(sizeof(MdbBackend));
backend->types_table = mdb_postgres_types; backend->types_table = mdb_postgres_types;
mdb_register_backend(backend, "postgres"); 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) void mdb_register_backend(MdbBackend *backend, char *backend_name)
{ {

View File

@@ -3,6 +3,7 @@ Makefile.in
.deps .deps
.libs .libs
parser.c parser.c
lexer.c
parser.h parser.h
*.lo *.lo
*.la *.la

View File

@@ -11,6 +11,7 @@ mdb-sql
mdb-tables mdb-tables
mdb-ver mdb-ver
mdb-check mdb-check
mdb-prop
prcat prcat
prdata prdata
prdump prdump