Skip to content

Commit c9c0b56

Browse files
chwjarl-dk
authored andcommitted
Imported sqliteodbc-0.70.tar
1 parent ba5b09b commit c9c0b56

18 files changed

+1356
-43
lines changed

ChangeLog

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
SQLite ODBC Driver
22
------------------
33

4+
Sun Aug 20 2006 version 0.70 released
5+
6+
* update to SQLite 3.3.7
7+
* fix for SQLBindCol(,,NULL,,) which must unbind column
8+
* added missing SQL_CATALOG_NAME/SQL_COLLATION_SEQ in SQLGetInfo()
9+
* added SQLiteODBCInstaller for Win32 as contributed
10+
by Gunter Hinrichsen
11+
* added install/uninstall functions in Win32 versions in
12+
order to allow driver install/remove by rundll32
13+
414
Sun Jul 23 2006 version 0.69 released
515

616
* added "NoCreat" DSN option in SQLite3 driver to prevent

Makefile.mingw-cross

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ all: sqliteodbc.dll sqlite3odbc.dll \
3131
sqlite.exe sqlite3.exe \
3232
inst.exe instq.exe uninst.exe uninstq.exe \
3333
adddsn.exe remdsn.exe \
34-
addsysdsn.exe remsysdsn.exe
34+
addsysdsn.exe remsysdsn.exe \
35+
SQLiteODBCInstaller.exe
3536

3637
sqliteodbc.o: sqliteodbc.c sqliteodbc.h resource.h
3738
$(CC) $(CFLAGS) -mdll -c -I$(SQLITE_INC) $(ODBC_FLAGS) \
@@ -134,6 +135,11 @@ addsysdsn.exe: adddsn.exe
134135
remsysdsn.exe: adddsn.exe
135136
cp -p adddsn.exe remsysdsn.exe
136137

138+
SQLiteODBCInstaller.exe: SQLiteODBCInstaller.c
139+
$(CC) $(CFLAGS) -o SQLiteODBCInstaller.exe \
140+
SQLiteODBCInstaller.c -lkernel32 -luser32
141+
$(STRIP) SQLiteODBCInstaller.exe
142+
137143
clean:
138144
rm -f *.o sqliteodbc*.dll sqlite3odbc.dll *inst.exe \
139145
*dsn.exe sqlite*.exe *~ core

README

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ The current source can be downloaded from
1313

1414
WIN32 binaries (the ODBC driver DLL, install/uninstall programs) are in
1515

16-
http://www.ch-werner.de/sqliteodbc/sqliteodbc-win32.zip
16+
http://www.ch-werner.de/sqliteodbc/sqliteodbc.exe
1717

18-
The binaries were made with SQLite 2.8.17, SQLite 3.3.6, MingW
18+
The binaries were made with SQLite 2.8.17, SQLite 3.3.7, 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.0.
2121
Execute the sqliteodbc.exe NSIS installer to unpack the necessary
@@ -26,7 +26,7 @@ applet and provide the name of the SQLite database file to be worked
2626
on as an absolute pathname including the drive letter, eg as
2727
"C:\TEMP\SQLite.DB". The busy (or lock) timeout for the database
2828
can be specified in the respective field. If empty a default value
29-
of 1000 milliseconds is used.
29+
of 100000 milliseconds is used.
3030

3131
Other tests were made on Linux with the "isql" command line tool
3232
and the "DataManager" GUI tool of unixODBC 2.1.0.
@@ -212,6 +212,24 @@ Build instructions for MingW cross compiler for Win32 targets:
212212
final step is creating an NSIS installer.
213213

214214

215+
Win32 install/remove by RUNDLL32
216+
217+
Each driver DLL provides entry points for ODBC driver installation
218+
and removal which can be invoked from RUNDLL32.EXE, eg
219+
220+
### install sqliteodbc.dll
221+
C:\> rundll32 [path]sqliteodbc.dll,install [quiet]
222+
223+
### remove sqlite3odbc.dll
224+
C:\> rundll32 [path]sqlite3odbc.dll,uninstall [quiet]
225+
226+
If [path] is not provided newer Windows OSes tend to favor the
227+
sqlite*odbc*dll in system directories over the current directory,
228+
thus better provide an absolute path to the DLL of interest.
229+
If the word "quiet" appears anywhere after the DLL/function
230+
name, no info message boxes pop up (but errors are shown).
231+
232+
215233
DNS-less connection to the driver
216234

217235
Using the SQLDriverConnect() API it should be possible to connect to
@@ -238,7 +256,7 @@ TODO:
238256
- improve documentation
239257

240258

241-
2006-07-23
259+
2006-08-20
242260
Christian Werner
243261
mailto:chw@ch-werner.de
244262

README.ic

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
------------------------------------------------------------------
2+
How to compile Win32 SQLite3 ODBC driver with the Intel-Compiler
3+
------------------------------------------------------------------
4+
5+
This HOWTO was written by Gunter Hinrichsen <frontier.user@gmx.net>
6+
7+
8+
Read first the README section "Build instructions for MS Visual C++ 6.0:".
9+
Some easy changes have to be made to compile SQLite3 ODBC driver under Intel-
10+
Compiler environment. You have to replace some options in the two make files.
11+
Of course you can add at advanced Intel-Compiler optimize options, too.
12+
13+
sqlite3.mak:
14+
------------
15+
- Replace in "BCC" the "cl" by "icl".
16+
Old: "BCC = cl -Gs -GX -D_WIN32 -nologo -Zi"
17+
New: "BCC = icl -Gs -GX -D_WIN32 -nologo -Zi"
18+
19+
- Replace in "TCC" the "cl" by "icl".
20+
Old: "TCC = cl -Gs -GX -D_WIN32 -DOS_WIN=1 -nologo -Zi"
21+
New: "TCC = icl -Gs -GX -D_WIN32 -DOS_WIN=1 -nologo -Zi"
22+
23+
- Replace in the "sqlite3.dll:" section "link" by "xilink".
24+
Old: "xilink -release -nodefaultlib -dll msvcrt.lib kernel32.lib \"
25+
New: "link -release -nodefaultlib -dll msvcrt.lib kernel32.lib \"
26+
27+
- Add in the "xilink" comando line the lib "libircmt.lib".
28+
Old: "xilink -release -nodefaultlib -dll msvcrt.lib kernel32.lib \"
29+
New: "link -release -nodefaultlib -dll msvcrt.lib kernel32.lib libircmt.lib \"
30+
31+
sqlite3odbc.mak:
32+
----------------
33+
- Replace in "CC" the "cl" by "icl".
34+
Old: "CC=cl"
35+
New: "CC=icl"
36+
37+
- Replace in "LN" the "link" by "xilink".
38+
Old: "LN=link"
39+
New: "LN=xilink"
40+
41+
- Add in "DLLLIBS" the lib "libircmt.lib".
42+
Old: "DLLLIBS= msvcrt.lib odbccp32.lib kernel32.lib \"
43+
New: "DLLLIBS= msvcrt.lib odbccp32.lib kernel32.lib libircmt.lib \"
44+
45+
46+
47+
-------------------------------------
48+
Start the Intel Environment. You can find the Environment in the start-menu:
49+
"Intel(R) Software Development Tools/Intel(R) C++ Compiler 9.1/Build Environment for IA-32 applications"
50+
Now compile with:
51+
nmake -f sqlite3odbc.mak

0 commit comments

Comments
 (0)