Skip to content

Commit ef28a57

Browse files
chwjarl-dk
authored andcommitted
Imported sqliteodbc-0.81.tar
1 parent 3f8aff4 commit ef28a57

17 files changed

+1033
-304
lines changed

ChangeLog

+20
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,26 @@
11
SQLite ODBC Driver
22
------------------
33

4+
Tue Apr 14 2009 version 0.81 released
5+
6+
* update to SQLite 3.6.13
7+
* use sqlite3_table_column_metadata() when available to
8+
optimize out "PRAGMA table_info()"
9+
* configure now prefers the amalgamation SQLite3 source if
10+
it finds sqlite3.c/sqlite3.h using the --with-sqlite3 switch
11+
* various hacks to make MS Excel/Query happy
12+
* various fixes and enhancements in impexp.c
13+
* keep sqlite3_stmt pointers as long as possible between
14+
SQLPrepare() and SQLExecute() in order to minimize
15+
SQLite API calls
16+
* provide current date when retrieving TIME rows as TIMESTAMP
17+
* now use amalgamation source sqlite3.c when building
18+
SQLite3 drivers
19+
* partial implementation of SQLSetPos(), fixes in length
20+
handling for deferred parameters, and row-wise parameter
21+
array binding to make Database Template Library (DTL) happy
22+
* 64 Bit fixes for getrowdata() thanks Nikolas Taylor for fix
23+
424
Tue Jan 27 2009 version 0.80 released
525

626
* update to SQLite 3.6.10

Makefile.in

+11-5
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ libdir = @libdir@
66
CC = @CC@
77
INSTALL = @INSTALL@
88
LIBTOOL = ./libtool
9-
CFLAGS= @CFLAGS@ -DDRIVER_VER_INFO=\"@VER_INFO@\"
9+
CFLAGS= @CFLAGS@ -DDRIVER_VER_INFO=\"@VER_INFO@\" @SQLITE3_A10N_FLAGS@
1010
SQLITE_INC = @SQLITE_INC@
1111
SQLITE_LIB = @SQLITE_LIB@
1212
SQLITE_FLAGS = -DHAVE_LIBVERSION=@SQLITE_LIBVERSION@ \
@@ -22,7 +22,10 @@ SQLITE3_FLAGS = -DHAVE_SQLITE3COLUMNTABLENAME=@SQLITE3_COLUMNTABLENAME@ \
2222
-DHAVE_SQLITE3PREPAREV2=@SQLITE3_PREPARE_V2@ \
2323
-DHAVE_SQLITE3CLEARBINDINGS=@SQLITE3_CLEARBINDINGS@ \
2424
-DHAVE_SQLITE3CREATEMODULEV2=@SQLITE3_CREATEMODULE_V2@ \
25-
-DHAVE_SQLITE3VFS=@SQLITE3_VFS@
25+
-DHAVE_SQLITE3VFS=@SQLITE3_VFS@ \
26+
-DHAVE_SQLITE3TABLECOLUMNMETADATA=@SQLITE3_TABLECOLUMNMETADATA@
27+
SQLITE3_A10N_C = @SQLITE3_A10N_C@
28+
SQLITE3_A10N_O = @SQLITE3_A10N_O@
2629
ODBC_FLAGS = @ODBC_FLAGS@
2730
ODBC_LIB = @ODBC_LIB@
2831
VER_INFO = @VER_INFO@
@@ -34,10 +37,10 @@ libsqliteodbc.la: sqliteodbc.lo
3437
sqliteodbc.lo -rpath $(libdir) $(SQLITE_LIB) \
3538
$(ODBC_LIB) -release $(VER_INFO)
3639

37-
libsqlite3odbc.la: sqlite3odbc.lo
40+
libsqlite3odbc.la: sqlite3odbc.lo $(SQLITE3_A10N_O)
3841
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libsqlite3odbc.la \
39-
sqlite3odbc.lo -rpath $(libdir) $(SQLITE3_LIB) \
40-
$(ODBC_LIB) -release $(VER_INFO)
42+
sqlite3odbc.lo $(SQLITE3_A10N_O) -rpath $(libdir) \
43+
$(SQLITE3_LIB) $(ODBC_LIB) -release $(VER_INFO)
4144

4245
libsqlite3_mod_blobtoxy.la: blobtoxy.lo
4346
$(LIBTOOL) --mode=link $(CC) $(CFLAGS) \
@@ -59,6 +62,9 @@ sqlite3odbc.lo: sqlite3odbc.c sqlite3odbc.h
5962
-I$(SQLITE3_INC) $(ODBC_FLAGS) \
6063
$(SQLITE3_FLAGS) sqlite3odbc.c
6164

65+
$(SQLITE3_A10N_O): $(SQLITE3_A10N_C)
66+
$(LIBTOOL) --mode=compile $(CC) -c $(CFLAGS) $(SQLITE3_A10N_C)
67+
6268
blobtoxy.lo: blobtoxy.c
6369
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c \
6470
-I$(SQLITE3_INC) \

Makefile.mingw-cross

+23-9
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ MAKENSIS = makensis
99

1010
DRV_VER= $(shell cat VERSION)
1111

12-
CFLAGS= -g -O2 -Wall -DDRIVER_VER_INFO=\"$(DRV_VER)\"
12+
CFLAGS= -O2 -Wall -DDRIVER_VER_INFO=\"$(DRV_VER)\"
1313

1414

1515
SQLITE_INC = sqlite
@@ -27,6 +27,17 @@ SQLITE3_FLAGS= -DHAVE_SQLITE3COLUMNTABLENAME=1 \
2727
-DHAVE_SQLITE3LOADEXTENSION=1 \
2828
-DHAVE_SQLITE3PREPAREV2=1 \
2929
-DHAVE_SQLITE3VFS=1
30+
SQLITE3_A10N = sqlite3/sqlite3.c
31+
SQLITE3_A10N_FLAGS = \
32+
-DWIN32=1 -DNDEBUG=1 -DNO_TCL -DTHREADSAFE=1 \
33+
-DSQLITE_ENABLE_COLUMN_METADATA=1 \
34+
-DSQLITE_DLL=1 \
35+
-DSQLITE_THREADSAFE=1 \
36+
-DSQLITE_OS_WIN=1 \
37+
-DSQLITE_ASCII=1 \
38+
-DSQLITE_SOUNDEX=1 \
39+
-DSQLITE_OMIT_SHARED_CACHE=1 \
40+
-DSQLITE_OMIT_EXPLAIN=1
3041

3142
TCC_INC = TCC/include
3243
TCC_LIB = TCC/lib/libtcc.a
@@ -95,6 +106,10 @@ resource.h: resource.h.in
95106
sed -e 's/--VERS_C--/'$$VERS_C'/g' < resource.h.in | \
96107
sed -e 's/--VERS--/'$$VERS'/g' > resource.h
97108

109+
sqlite3a10n.o: $(SQLITE3_A10N)
110+
$(CC) $(CFLAGS) -c -I$(SQLITE3_INC) $(SQLITE3_A10N_FLAGS) \
111+
$(ADD_CFLAGS) -o sqlite3a10n.o $(SQLITE3_A10N)
112+
98113
sqlite3odbc.o: sqlite3odbc.c sqlite3odbc.h resource3.h
99114
$(CC) $(CFLAGS) -c -I$(SQLITE3_INC) $(ODBC_FLAGS) \
100115
$(SQLITE3_FLAGS) $(ADD_CFLAGS) sqlite3odbc.c
@@ -104,28 +119,27 @@ sqlite3odbcnw.o: sqlite3odbc.c sqlite3odbc.h resource3.h
104119
$(SQLITE3_FLAGS) $(ADD_CFLAGS) -DWITHOUT_WINTERFACE=1 \
105120
-o sqlite3odbcnw.o sqlite3odbc.c
106121

107-
sqlite3odbc.dll: sqlite3odbc.o sqlite3odbcres.o
122+
sqlite3odbc.dll: sqlite3odbc.o sqlite3odbcres.o sqlite3a10n.o
108123
$(CC) $(CFLAGS) -shared -Wl,--kill-at \
109124
-Wl,--out-implib,libsqlite3odbc.a -Wl,--strip-all \
110125
-o sqlite3odbc.dll \
111-
sqlite3odbc.o sqlite3odbcres.o \
126+
sqlite3odbc.o sqlite3odbcres.o sqlite3a10n.o \
112127
-lodbc32 -lodbccp32 -lcomdlg32 \
113-
-lkernel32 -luser32 -lmsvcrt $(SQLITE3_LIB)
128+
-lkernel32 -luser32 -lmsvcrt
114129
$(STRIP) sqlite3odbc.dll
115130

116-
sqlite3odbcnw.dll: sqlite3odbcnw.o sqlite3odbcres.o
131+
sqlite3odbcnw.dll: sqlite3odbcnw.o sqlite3odbcres.o sqlite3a10n.o
117132
$(CC) $(CFLAGS) -shared -Wl,--kill-at \
118133
-Wl,--out-implib,libsqlite3odbcnw.a -Wl,--strip-all \
119134
-o sqlite3odbcnw.dll \
120-
sqlite3odbcnw.o sqlite3odbcres.o \
135+
sqlite3odbcnw.o sqlite3odbcres.o sqlite3a10n.o \
121136
-lodbc32 -lodbccp32 -lcomdlg32 \
122-
-lkernel32 -luser32 -lmsvcrt $(SQLITE3_LIB)
137+
-lkernel32 -luser32 -lmsvcrt
123138
$(STRIP) sqlite3odbcnw.dll
124139

125140
sqlite3.exe: sqlite3odbc.dll sqlite3/src/minshell.c sqliteres.o
126141
$(CC) $(CFLAGS) $(SQLITE3_FLAGS) -Isqlite3 -o sqlite3.exe \
127-
sqlite3/src/minshell.c sqliteres.o -L. -lsqlite3odbc \
128-
$(SQLITE3_LIB)
142+
sqlite3/src/minshell.c sqliteres.o -L. -lsqlite3odbc
129143
$(STRIP) sqlite3.exe
130144

131145
sqlite3odbcres.o: sqlite3odbc.rc resource3.h

README

+6-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ WIN32 binaries (the ODBC driver DLL, install/uninstall programs) are in
1515

1616
http://www.ch-werner.de/sqliteodbc/sqliteodbc.exe
1717

18-
The binaries were made with SQLite 2.8.17, SQLite 3.6.10, MingW
18+
The binaries were made with SQLite 2.8.17, SQLite 3.6.13, MingW
1919
cross compiler and tested on Windows NT 4.0 with the query tool
2020
of MS Excel 97, with StarOffice 5.2 and OpenOffice 1.1 and 2.x.
2121
Execute the sqliteodbc.exe NSIS installer to unpack the necessary
@@ -186,17 +186,15 @@ Build instructions for MS Visual C++ 6.0:
186186
... for SQLite 3.x.x
187187

188188
1. Extract the source tarball sqliteodbc.tar.gz
189-
2. Extract the official SQLite 3.x.x. sources in the sqliteodbc
190-
directory which resulted from step 1. Rename the resulting
191-
sqlite directory to sqlite3
189+
2. Extract the amalgamation SQLite 3.x.x. sources in the sqliteodbc
190+
directory which resulted from step 1.
192191
3. Setup your MSVC++ environment, ie PATH/INCLUDE/LIB, then
193192
open a command window, cd to the sqliteodbc directory and enter:
194193

195194
nmake -f sqlite3odbc.mak
196195

197-
This compiles the SQLite3 sources first, creates a link library
198-
of the necessary object files, then compiles and links the ODBC
199-
driver and the (un)install program.
196+
This compiles the amalgamation SQLite3 source and the ODBC driver
197+
first, then and links the ODBC driver and the (un)install program.
200198

201199
Names of Win32 Driver DLLs:
202200

@@ -289,7 +287,7 @@ TODO:
289287
- improve documentation
290288

291289

292-
2009-01-27
290+
2009-04-14
293291
Christian Werner
294292
295293

SQLiteODBCInstaller.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,7 @@ int RunUnInstaller( const struct RunningOptionData_Struct *pRunData )
801801
break;
802802

803803
default:
804-
_snprintf( g_ErrorMessage, SQLINST_MAX_ERROR_BUFFER, "Internel error: %s: Can not run: %d\n", __FUNCTION__, pRunData->DoFollow );
804+
_snprintf( g_ErrorMessage, SQLINST_MAX_ERROR_BUFFER, "Internel error: %s: Can not run: %d\n", "RunUnInstaller", pRunData->DoFollow );
805805
g_ErrorMessage[SQLINST_MAX_ERROR_BUFFER-1] = 0;
806806
MessageToUser( g_ErrorMessage );
807807
// Break with error

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.80
1+
0.81

0 commit comments

Comments
 (0)