4fdb45fe565358e2cbcf8a18d602b3d3eed940d7
[clsql.git] / ChangeLog
1 02 Oct 2006  Kevin Rosenberg <kevin@rosenberg.net>
2         * sql/syntax.lisp: Check that original reader syntax functions
3         stored before trying to restore them.
4         
5 20 Sep 2006  Kevin Rosenberg <kevin@rosenberg.net>
6         * sql/syntax.lisp: Apply patch from Marcus Pearce to correctly
7         display sql reader syntax.
8
9 06 Sep 2006  Kevin Rosenberg <kevin@rosenberg.net>
10         * uffi/clsql-uffi-loader.lisp, db-mysql/mysql-loader.lisp: Change from using *features*
11         to decide on 64-bit platform and check size of most-positive-fixnum instead.
12         Needed to support clisp amd64.
13
14 03 Sep 2006  Kevin Rosenberg <kevin@rosenberg.net>
15         * Version 3.7.1
16         * sql/metaclasses.lisp: Rework slot type's to be more AMOP
17         compatibile. Add warning for a metaclass condition that should
18         not occur.
19         * sql/time.lisp: Fixed symbol case inconsistency causing problem
20         in AllegroCL's modern lisp. First sign of bug noted by
21         Joel Reymond on clsql-devel.
22         * clsql.asd: Make time.lisp depend on utils.lisp
23
24 31 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
25         * db-mysql/mysql-loader.lisp: Apply patch from Marcus Pearce to push 
26         *library-file-dir* to CLSQL's library path.
27
28 30 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
29         * Version 3.7.0: New platforms supported: SBCL/Win32, CLISP/Win32, CLISP/Cygwin,
30         CLISP/Linux x86, CLISP/Linux amd64, OpenMCL amd64. CLISP support requires the
31         latest development versions of CLISP, cffi, and cffi-uffi-compat packages.
32         * Makefile.common: Add OS detection
33         * uffi/make.sh, db-mysql/make.sh: Remove files
34         * uffi/Makefile, db-mysql/Makefile: Add support for cygwin compilation.
35         Refactor to remove need to make.sh shell scripts. 
36         * clsql.asd: Add support for loop extensions for clisp. Support clisp via cffi.
37         * sql/loop-extension.lisp: Define loop-record-iteration-path in CLSQL-SYS 
38         package rather than CL-USER. Add support for ansi-loop on clisp. 
39         * sql/ansi-loop.lisp: New file to support iteration on clisp. 
40         * db-mysql/mysql-api.lisp: Remove old mysql C API functions that no
41         longer exist in the mysql client library.
42         * doc/ref-fdml.lisp: Correct default field-type.
43         * sql/expressions.lisp: Use database-output-as-type if value exists for boolean output.
44         Fixed bug with noted with MySQL 5.0.24 and boolean values.
45         
46 28 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
47         * Version 3.6.7
48         * sql/oodml.lisp: Remove high debugging level declaration
49
50 14 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
51         * Version 3.6.6
52         * sql/generic-postgresql.lisp: Fix assumption that postgres user id
53         is always 1. Fixes problem noted with PostgreSQL 8.1.
54
55 12 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
56         * Version 3.6.5
57         * sql/generic-postgresql.lisp: Add slot for has-table-pg_roles to
58         lazily cache if pg_roles tables exist. Selectively use SQL from
59         Joel's previous patch if pg_roles table exists. Should now work
60         with both postgresql 7.4 and 8.x.
61         
62 12 Aug 2006  Kevin Rosenberg <kevin@rosenberg.net>
63         * Version 3.6.4
64         * clsql.asd: Add support for c:\etc\clsql-init.lisp as possible
65         local initialization file
66         * db-mysql/mysql-loader.lisp: Remove former method of using pathnames
67         as name candidates.
68         * db-odbc/odbc-api.lisp: Work-around Allegro/Windows FFI bug
69         that generates incorrect integer return type
70         * sql/generic-postgresql.lisp: Revert patch from Joel Reymont since
71         it fails on versions of postgresql that lack the pg_role table
72         
73 07 Jul 2006  Kevin Rosenberg <kevin@rosenberg.net>
74         * Version 3.6.3
75         * sql/transactions.lisp: Important typo fix from Alexey Antipov
76         for database-start-transaction
77         
78 04 Jul 2006  Kevin Rosenberg <kevin@rosenberg.net>
79         * Version 3.6.2
80         * db-postgresql/postgresql-sql.lisp: Apply patch from Vladimir Sekissov
81         to close connection when failing to connect to database.
82         * sql/generic-postgresql.lisp: Apply patch from Joel Reymont
83         to avoid dropping system views.
84         * sql/oodml.lisp: Apply patch from Joel Reymont to avoid listify
85         a nil value [patch sponsored by Flektor]
86         * clsql-uffi.asd, uffi/make.sh: Patch from Richard Kreuter
87         for netbsd compilation
88         
89 15 May 2006  Kevin Rosenberg <kevin@rosenberg.net>
90         * doc/ref-ooddl.xml: Add documentation for :db-reader and :db-writer
91         slots for def-view-class macro [as reported missing by Thomas Fischbacher].
92         
93 09 May 2006  Kevin Rosenberg <kevin@rosenberg.net>
94         * db-postgresql-socket/postgresql-socket-api.lisp:
95         Apply patch from Marko Kocic adding the socket creation
96         function needed for CLISP.
97
98 08 May 2006  Kevin Rosenberg <kevin@rosenberg.net>
99         * Version: 3.6.0 (requires UFFI v1.5.11 or greater)
100         * db-oracle/metaclasses.lisp: Patch from James Bielman for
101         checking slot constraints.
102         * db-oracle/oracle-{api,sql}.lisp: Avoid dead pointers on loading
103         saved openmcl images (based on patch from James Bielman)
104
105 06 May 2006  Kevin Rosenberg <kevin@rosenberg.net>
106         * doc/ref-fdml.xml: Documentation patch from Marcus Pearce for limit keyword
107         
108 03 May 2006  Kevin Rosenberg <kevin@rosenberg.net>
109         * Version 3.5.7
110         * sql/time.lisp: Apply patch from Aleksandar Bakic to extended
111         duration parsing and unparsing to include year and month.
112         * clsql-uffi.asd, uffi/clsql-uffi-loader.lisp: Apply patch from Nathan Bird
113         improving library search on Windows platform.
114         * doc/ref-fdml.xml, /doc/TODO, tests/test-fdml.lisp, tests/test-init.lisp:
115         Apply patch from Marcus Pearce documenting and testing :limit and :offset for SELECT
116
117 20 Mar 2006  Kevin Rosenberg <kevin@rosenberg.net>
118         * Version 3.5.6
119         * clsql-postgresql-socket.asd, 
120         * db-postgresql-socket/postgresql-socket-package.lisp: 
121         Use the cl-md5 package on all platforms. Based on report 
122         from Alan Caulkins.
123         
124 09 Mar 2006  Kevin Rosenberg <kevin@rosenberg.net>
125         * Version 3.5.5
126         * uffi/make.sh, db-mysql/make.sh: Add GNU uname
127         
128 28 Feb 2006  Kevin Rosenberg <kevin@rosenberg.net>
129         * Version 3.5.4
130         * sql/metaclasses.lisp: Apply patch from Friedrich Dominicus to
131         fix accessor for new versions of SBCL
132         * db-oracle/oracle-sql.lisp: Apply patch from James Bielman
133         to improving parsing of time.
134         * db-db2/db2-constants.lisp: Change NULL_HANDLE has suggested
135         by Harold Lee.
136         * db-oracle/oracle-dbi.lisp: Add support for SQL BIT type
137         as noted by Russ Tyndall.
138         
139 16 Jan 2006  Kevin Rosenberg <kevin@rosenberg.net>
140         * Version 3.5.3
141         * sql/time.lisp: Commit patch from Aleksandar Bakic
142         to properly handle destructive flag
143         * db-postgresql-socket/postgresql-socket-api.lisp: Apply patch
144         from Steven Harris for socket files with SBCL.
145         * sql/pool.lisp: Apply patch from Vladimir Sekissov so that
146         new connections added to the pool do not become the *default-database*
147         * sql/connect.lisp: Optionally set *default-database* for pooled
148         connection when make-default is generalized true.
149         
150 23 Dec 2005  Kevin Rosenberg <kevin@rosenberg.net>
151         * Version 3.5.1
152         * sql/expressions.lisp: Ensure table names are properly escaped
153         before comparing -- fixes bug reported by Asbjørn Bjørnstad
154         on CLSQL-Devel.
155
156 02 Dec 2005  Kevin Rosenberg <kevin@rosenberg.net>
157         * sql/generic-postgresql.lisp: improved decoding of table attribute
158           parameters [from Vladimir Sekissov]
159         * sql/metaclasses.lisp: check that metaclass is standard-db-class or
160           it's subclass to prevent adding standard-db-object to supers if
161           somebody in the path has it already when metaclass inherited from
162           standard-db-class. [from Vladimir Sekissov]
163         
164 26 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
165         * Version 3.5.0
166         * tests/test-init.lisp, tests/test-fddl.lisp, tests/test-fdml.lisp, 
167         * db-odbc/odbc-api.lisp, db-odbc/odbc-ff-interface.lisp,
168         * db-odbc/odbc-package.lisp, db-odbc/odbc-constants.lisp
169         * db-odbc/odbc-dbi.lisp, db-odbc/odbc-sql.lisp
170         * sql/fddl.lisp, sql/generic-odbc.lisp, sql/db-interface.lisp
171         * sql/transaction.lisp, sql/package.lisp, sql/time.lisp
172         Commit patch from Dominic Robinson providing support for 
173         Microsoft SQL Server
174         * doc/csql.lisp: Fix typo in slot name
175         
176 24 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
177         * Version 3.4.7
178         * sql/time.lisp: Commit patch from Aleksandar Bakic for
179         correct handling of decode-time usec value  
180         * clsql-mysql.asd: Commit patch from Harald Hanche-Olsen to
181         correct the name of the shared library file.
182         
183 16 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
184         * version 3.4.6
185         * sql/metaclasses.lisp: Avoid calling change-class on
186         effective-slot-definitions on sbcl to conform to sbcl 0.9.6.38
187         changes.
188         
189 15 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
190         * Version 3.4.5
191         * sql/expressions.lisp: Patch from James Biel to add subselects
192
193 14 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
194         * Version 3.4.4 [ Requires UFFI 1.5.7+] 
195         * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
196         to fix lifetime of foreign strings for Oracle calls
197
198 13 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
199         * Version 3.4.3
200         * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
201         to improve performance
202         
203 12 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
204         * Version 3.4.2
205         * clsql-uffi.asd: Patch from James Biel improving loading
206         * db-oracle/oracle-{api,sql}.lisp: Patch from James Biel
207         to support 64-bit lisps
208         
209 12 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
210         * Version 3.4.1
211         * sql/expressions.lisp: Escape numbers to SQL strings
212         at expression level.
213         
214 11 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
215         * Version 3.4: Add MySQL 5 support
216         * db-mysql/mysql-client-info.lisp: Recognize MySQL 5
217         * db-mysql/mysql-sql.lisp: Add support for views in MySQL 5
218         * doc/mysql-macosx-notes.txt: New document from Martin Brooks
219         
220 7 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
221         * src/time.lisp: Apply patch from Aleksandar Bakic for ROLL
222         function.
223         * BUGS: Added report for update-object-joins by Aleksandar Bakic
224         
225 4 Nov 2005  Kevin Rosenberg <kevin@rosenberg.net>
226         * Version 3.3.4 [UFFI >= 1.5.5 needed]
227         * db-odbc/odbc-api.lisp: Apply patch from Yaroslav Kavenchuk
228         to add missing #\' character.
229         * clsql.asd: Add support for CLSQLINIT environmental variable,
230         based on patch from Yaroslav Kavenchcuk. New version of UFFI
231         required.
232         
233 30 Oct 2005  Kevin Rosenberg <kevin@rosenberg.net>
234         * Version 3.3.3
235         * sql/oodml.lisp: Apply patch from Drew Crampsie to fix
236         update-objects-joins when using the :target-slot attribute
237         
238 26 Oct 2005  Kevin Rosenberg <kevin@rosenberg.net>
239         * Version 3.3.2
240         * sql/expressions.lisp: Avoid parenthesis on multiple group-by fields
241         as noted by Harald Hanche-Olsen.
242         * tests/test-syntax.lisp: Add test for multiple field group-by
243         
244 25 Oct 2005  Kevin Rosenberg <kevin@rosenberg.net>
245         * Version 3.3.1
246         * sql/time.lisp: Commit patch from Alan Shields to
247         display escape string on wall-time display only when *print-escape*
248         is true.
249         
250 11 Oct 2005  Kevin Rosenberg <kevin@rosenberg.net>
251         * sql/metaclasses.lisp: Commit patch from Will to
252         properly set db-reader slot in effective-slot-definition
253         * sql/expressions.lisp: Commit patch from Alan Shields
254         adding make-load-form for sql-relational-exp
255         * sql/generic-postgresql.lisp: Commit patch from Aleksandar Bakic
256         adding support for new NUMBER type
257         
258 17 Sep 2005  Kevin Rosenberg <kevin@rosenberg.net>
259         * Version 3.3.0
260         * sql/time.lisp: Apply patch from Alan Shields adding DATE type.
261         * doc/ref-ooddl.xml: Documentation of new type
262         * notes/add-type-hints.txt: New file from Alan Shields
263         * sql/fddl.lisp: Add owner keyword to drop-table as suggested
264         by Francis Leboutte
265         * db-postgresql-socket/postgresql-socket-sql.lisp: Fix database-probe
266         as noted by Francis Leboutte. Similar fix applied to db-mysql and
267         db-postgresql.
268         * sql/expressions.lisp: Allow string table names for output as
269         contributed by Francis Leboutte.
270         * examples/clsql-tutorial.lisp: Support :postgresql-socket as noted 
271         by Francis Leboutte
272         
273 08 Sep 2005  Kevin Rosenberg <kevin@rosenberg.net>
274         * Version 3.2.4
275         * doc/into.xml: Change download from ftp to http protocol
276
277 08 Sep 2005  Kevin Rosenberg <kevin@rosenberg.net>
278         * Version 3.2.3
279         * db-oracle/oracle-sql.lisp: Correction for v3.2.2 changes by
280         Edi Weitz
281
282 08 Sep 2005  Kevin Rosenberg <kevin@rosenberg.net>
283         * Version 3.2.2
284         * db-oracle/oracle-sql.lisp: Add check for zero increment as
285         suggested by Edi Weitz. Add missing database-sequence-last function
286         as noted and tested by Edi Weitz. Ensure that UFFI buffer is freed
287         in handle-oci-error. Add unwind-protect to sql-stmt-exec. Free UFFI
288         stmthp object when query cursor is freed with OCI.
289
290 22 Aug 2005  Kevin Rosenberg <kevin@rosenberg.net>
291         * uffi/clsql-uffi-loader.lisp: Commit patch from astor@pvv.ntnu.no to
292         display search path when error occurs loading foreign library.
293         
294 05 Jul 2005  Kevin Rosenberg <kevin@rosenberg.net>
295         * Version 3.2.1
296         * doc/appendix.xml: Incorporate Edi Weitz's notes into documentation
297         with changes to support case-sensitive lisp implementations. Add
298         paragraph on using /etc/clsql-init.lisp site initialization file.
299         * clsql.asd: Load file /etc/clsql-init.lisp, if it
300         exists, after package is loaded to set site-specific configuration
301         
302 2005-06-24  Edi Weitz  <edi@agharta.de>
303         * sql/db-interface.lisp: Added new special variable
304         *FOREIGN-LIBRARY-SEARCH-PATHS* and function PUSH-LIBRARY-PATH to
305         manipulate it.
306         * sql/package.lisp: Export these.
307         * uffi/clsql-uffi-loader.lisp: Used new variable; changed order of
308         libs.
309         * db-mysql/mysql-loader.lisp: Changed order of libs.
310
311 09 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
312         * Version 3.2.0: REQUIRES UFFI VERSION 1.4.38 OR HIGHER
313         * clsql-mysql.asd: Renamed clsql/mysql interface library from
314         mysql to clsql_mysql
315         * clsql-uffi.asd: Renamed clsql/uffi interface library from
316         mysql to clsql_uffi
317         * uffi/clsql_uffi.c: Renamed from uffi.c
318         * db-mysql/clsql_mysql.c: Renamed from mysql.c
319         * db-mysql/Makefile, db-mysql/Makefile.msvc, db-mysql/mysql-loader.lisp: Rename shared library
320         * uffi/Makefile, uffi/Makefile.msvc, uffi/uffi-loader.lisp: Rename shared library
321         * db-*/*-loader.lisp: Commit big patch from Edi Weitz to remove
322         absolute pathnames when searching for foreign libraries.
323         foreign library loading.
324         
325 07 Jun 2005 Kevin Rosenberg <kevin@rosenberg.net>
326         * Version 3.1.16
327         * db-mysql/mysql-api.lisp: Commit patch from Espen Wiborn
328         to support UTF-8 on sbcl unicode.
329         
330 18 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
331         * Version 3.1.15
332         * sql/time.lisp: Fix bug in roll that caused failure in test suite
333
334 17 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
335         * Version 3.1.14
336         * sql/oodml.lisp: Properly handle when db-writer is NIL
337
338 11 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
339         * sql/expressions.lisp: Avoid using simple-string declaration when
340         a non-simple string may be encountered. [issue noted by 
341         will@cesmail.net] Add a simple-string declaration for a local
342         string generated.
343         
344 06 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
345         * sql/oodml.lisp: Change db-writer and db-reader processing to accept
346         a symbol as well as function to serve as a function designator
347         [issue noted by will@cesmail.net]
348
349 05 May 2005 Kevin Rosenberg <kevin@rosenberg.net>
350         * Version 3.1.13
351         * sql/time.lisp: Fix error in submitted patch which caused error
352         in timestrings with 19 or less characters.
353         
354 27 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
355         * Version 3.1.12
356         * db-postgresql-socket/postgresql-api.lisp: Commit patch from Tim Howe
357         to fix read-socket-sequence on non-sb-unicode sbcl.
358         
359 26 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
360         * Version 3.1.12
361         * sql/time.lisp: Commit patch from Daniel Lowe which adds support
362         for fractional seconds which is required by PostgreSQL
363         * db-postgresql/postgresql-loader.lisp: Add library path for Windows
364         
365 25 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
366         * sql/csql.lisp: Update URL for "SQL for Web Dummies" [Sean Champ]
367         
368 24 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
369         * Version 3.1.11
370         * sql/syntax: Commit patch from Alan Shields to supress reader
371         macros when *read-supress* is T.
372         
373 13 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
374         * Version 3.1.10
375         * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
376         from Janis Dzerins to support unicode on SBCL
377         * sql/syntax: Commit patch from Alan Shields to improve reporting
378         of invalid syntax statements.
379         
380 06 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
381         * Version 3.1.9
382         * db-mysql/mysql-sql.lisp: Add port to connection specification
383         based on patch from Dave Watson
384         * doc/appendix.xml: Document MySQL port parameter to connection spec
385
386 03 Apr 2005 Kevin Rosenberg <kevin@rosenberg.net>
387         * Version 3.1.8
388         * sql/time.lisp: Patch from Keith James for parsing ISO-8601 timestamps
389         
390 18 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
391         * sql/oodml.lisp: Add missing database argument [Patch from
392         Alan Caulkins]
393         
394 03 Mar 2005 Kevin Rosenberg <kevin@rosenberg.net>
395         * sql/oodml.lisp: Improve database priority in 
396         update-records-from-instance [Patch from Walter C. Pelissero]
397         
398 17 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
399         * Version 3.1.7
400         * sql/package.lisp: Export database-reconnect from clsql-sys
401
402 08 Feb 2005 Kevin Rosenberg <kevin@rosenberg.net>
403         * sql/oodml.lisp: Use explicit database in fault-join-target-slot
404         [Patch from Walter Pelissero]
405         
406 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
407         * db-postgresql/postgresql-loader.lisp: Add additional
408         directories to Fink on darwin [patch from Cyrus Harmon].
409         
410 29 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
411         * Version 3.1.6
412         * sql/oodml.lisp: Clear view instance cache when delete-instance-records
413         is invoked [suggested by Alan Shutko].
414         * uffi/clsql-uffi-loader.lisp: Improvements for loading with SBCL X86-64
415         * sql/metaclasses.lisp: Don't change case of a :base-table string supplied
416         to def-view-class [fix suggested by Fred Gilham].
417         
418 25 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
419         * tests/*.lisp: Change Vladamir to Vladimir per Cyrus Harmon's
420         suggestion.
421         * sql/utils.lisp: Fix unnecessary consing noted by Fred Gilham.
422         * doc/*.xml: Fix spelling of Vladimir
423         
424 24 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
425         * doc/bookinfo.xml, doc/csql.xml, doc/intro.xml: Update links
426         now that LispWorks is an independant company [noted by
427         Martin Thornquist]
428         
429 22 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
430         * db-sqlite/sqlite-sql.lisp, db-sqlite3/sqlite3-sql.lisp:
431         Better support for 64 bit environments
432
433 05 Jan 2005 Kevin Rosenberg <kevin@rosenberg.net>
434         * Version 3.1.5
435         * sql/metaclass.lisp: Make t the default value of :set
436         [noted by Cyrus Harmon]
437
438 28 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
439         * Version 3.1.4
440         * uffi/clsql-uffi.lisp: Add support for unsigned integers
441         * db-mysql/mysql-sql.lisp: Add support for detecting/marking
442         unsigned integers. Apply patch from Yannick Gingras to
443         implement database-sequence-last.
444         
445 26 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
446         * doc/ref-fdml.lisp: Fix variable tag name to varname
447         [noted by Eduardo Munoz]
448         * db-mysql/mysql-loader.lisp: Handle library paths for 64-bit systems
449         
450 06 Dec 2004 Kevin Rosenberg <kevin@rosenberg.net>
451         * Version 3.1.2
452         * sql/ooddl.lisp: Accept patch from Klaus Harbo for
453         update-object-joins.
454         * sql/metaclass.lisp: Remove unnecssary (and runtime error
455         causing) change-class invocation when running on CLISP.
456         * db-mysql/mysql-api.lisp: Commit patch from Paul Werkowski
457         to fix structure name.
458         * sql/database.lisp: More specific error message with trying
459         to use a database value of NIL.
460         * sql/expressions.lisp: Accept a string for the table name
461         in (sql-output sql-delete database) [suggested by Ed Symanzik].
462         
463 11 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
464         * Version 3.1.1
465         * sql/generic-postgresql.lisp: Commit patch from Chris Capel to
466         ignore columns which have been dropped.
467         * clsql-postgresql-socket.asd, db-postgresql-socket/postgresql-socket-package.lisp:
468         Use sb-md5 package on SBCL, recommended by Chris Capel
469         
470 09 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
471         * Version 3.1.0 released: New SQLite3 backend by Aurelio Bignoli
472         * doc/appendix.xml: Document SQLITE3 backend, patch by Aurelio Bignoli
473         * sql/operations.lisp: Add lower and upper SQL functions [Daniel Lowe].
474         
475 08 Nov 2004 Kevin Rosenberg <kevin@rosenberg.net>
476         * sql/expressions.lisp: Fix slot name [thanks to Daniel Lowe]
477
478 31 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
479         * clsql-sqlite3, db-sqlite3/*: NEW BACKEND
480         contributed by Aurelio Bignoli
481
482 23 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
483         * sql/oodml.lisp: Commit patch from Walter Pelis
484         to use an object's database for a select on its slot.
485         
486 20 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
487         * uffi/uffi.c, uffi/clsql-uffi.lisp: Commit patch from
488         Aurelio Bignoli to fix negative 64-bit integers
489         
490 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
491         * db-mysql/mysql.c: Fix parameters in bind_param call
492
493 07 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
494         * uffi/clsql-uffi.lisp: Add support for :blob result-type
495         * db-mysql/mysql-sql.lisp: Add support for :blob
496         result-type
497         
498 04 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
499         * db-mysql/mysql-sql.lisp, db-db2/db2-sql.lisp: Add
500         missing quotes for types in code that is still in development
501         (thanks to Joerg Hoehle)
502         
503 03 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
504         * Version 3.0.8 released
505         * db-sqlite/sqlite-*.lisp: Apply patch from
506         Aurelio Bignoli with improvements
507         
508 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
509         * multiple: Apply patch from Joerg Hoehle with multiple
510         improvements.
511         
512 01 Oct 2004 Kevin Rosenberg <kevin@rosenberg.net>
513         * Version 3.0.7 released
514         * sql/oodml.lisp, sql/package.lisp, db-mysql/mysql-objects.lisp:
515         Add support for mediumint.
516         * sql/metaclass.lisp: Rework CLISP MOP handling
517         * sql/ooddl.lisp: Work-around to have CLISP finalize standard-db-class
518         
519 28 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
520         * sql/metaclass.lisp: Support CLISP's attribute name
521         for the type field in direct class slots
522         
523 27 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
524         * Version 3.0.6 released
525         * BUGS: New file. Document suspected SIGPIPE
526         interaction between SBCL and libpq used in
527         postgresql backend.
528         * doc/ref-fdml.lisp: Document the :caching and :refresh
529         keywords of the SELECT function.
530         * doc/ref-ooddml.lisp: Document the new *default-caching*
531         variable.
532         * sql/package.lisp: Export *default-caching*
533         * sql/oodml.lisp: Use *default-caching* to 
534         control default caching behavior.
535         
536 21 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
537         * Version 3.0.5 release
538         * doc/appendix.xml: Add note about loading Oracle8 version
539         * db-oracle/oracle-loader.lisp: Support Oracle8 based on
540         data from David Young.
541
542 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
543         * doc/Makefile, doc/catalog-darwin.xml: Apply
544         patch from Cyrus Harmon for building docs on Mac OS X
545         * sql/package.lisp: Add new (pre-release) clisp MOP package     
546         
547 09 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
548         * Version 3.0.4 Release
549         * multiple: Remove superfluous quotes in UFFI def-type
550         and def-foreign-type forms.
551         
552 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
553         * Version 3.0.3 Release
554         * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
555         from Tagore Smith to call force-output after sending authentication
556         * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
557         * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
558         to a database of that type so that functions that indicate capabilities of
559         database are available.
560         
561 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
562         * db-odbc/odbc-api.lisp: More conversions to ODBC v3
563         
564 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
565         * Version 3.0.2 Release
566         * TODO: Add note about ODBC on Windows
567         * db-odbc/odbc-loader.lisp: Add /winnt/system32/ to
568         search directories
569         * db-odbc/odbc-ff-interface.lisp: Change the return type 
570         of SQLSetEnvAttr to :short
571         
572 02 Sep 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
573         * examples/clsql-tutorial.lisp: added missing initarg for the COMPANYID
574         slot of the employee View Class definition [reported by Franz Deuzer]. 
575
576 01 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
577         * Version 3.0.1 Release
578         * tests/test-init.lisp: Add second join class to employee-address
579         to test a class with two join slots.
580         * sql/oodml.lisp: Fix find-all function for a class with multiple
581         join slots
582         * TODO: Remove need to test/fix multiple join classes
583         
584 27 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
585         * db-mysql/Makefile, db-mysql/mysql-loader.lisp: accept patch
586         from Jon Buffington for file locations on Darwin.
587         
588 17 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
589         * sql/db-interface.lisp: Improve messages when functions
590         are passed a database object, but the method is not specialized
591         for that database type.
592         * sql/metaclasses.lisp: Fix inline declaration (reported by
593         Cyrus Harmon)
594         
595 14 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
596         * TODO: Add bug report about SQL generation with a table
597         containing two join slots.
598         * sql/oodml.lisp: Add optional size to VARCHAR type
599         
600 3 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
601         * Version 3.0.0 Release
602         * sql/expressions.lisp: Change declaration that
603         caused error on openmcl
604         * db-aodbc/aodbc-sql.lisp: Fix storage location
605         of odbc connection. Specialize database-query since
606         dbi's :types keyword is different than generic-odbc's
607         :result-types keyword
608         * sql/db-interface.lisp: Add warnings for methods
609         not specialized by a db backends
610         * tests/test-fddl.lisp: Fix case of symbols to support
611         case-sensitive Allegro 
612         * db-oracle/oracle-sql.lisp: Rework errbuf in handle-oci-error
613         * tests/test-init.lisp: Note that odbc driver for postgresql
614         doesn't properly handle table ownership
615         * LATEST-TEST-RESULTS: update with version 3.0.0
616         
617 1 Aug 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
618         * sql/expressions.lisp: conditionalise escaping of backslash in 
619         generated SQL strings on backend. 
620         * tests/test-fdml.lisp: test for escaping of backslash. 
621         * sql/oodml.lisp: minor tidying in FIND-ALL. 
622
623 26 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
624         * NEWS: Initial 3.0 announcement draft
625         * README: Expand acknowledgements of incorporated projects
626         * CONTRIBUTORS: Further document Marcus Pearce contributions
627         
628 23 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
629         * sql/oodml.lisp: add DATABASE-OUTPUT-SQL-AS-TYPE method specialisation
630         to print floats with the exponent markers removed. 
631         * tests/test-oodml.lisp: add tests for updating records with floats. 
632
633 22 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
634         * db-oracle/oracle-sql.lisp: enable :OWNER :ALL in DATABASE-LIST-* for 
635         CommonSQL compatibility. 
636         * tests/test-init.lisp: skip test :FDDL/TABLE/6 on Oracle since 
637         this column constraint syntax is not supported. 
638         * tests/test-fddl.lisp: change column indexed in test :FDDL/INDEXES/2
639         from EMPLID to LAST_NAME since Oracle complains that EMPLID is already 
640         indexed. 
641
642 17 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
643         * doc/ref-fdml.xml: document CACHE-TABLE-QUERIES. 
644         * tests/test-fdml.xml: add test for CACHE-TABLE-QUERIES. 
645         * doc/ref-ooddl.xml: minor changes to syntax and examples entries 
646         for uniformity. 
647         * doc/ref-oodml.xml: add examples for OODML. 
648         * sql/oodml.lisp: ensure SELECT passes on its REFRESH argument 
649         to FIND-ALL. 
650         * sql/metaclasses.lisp: update docstrings. 
651         * tests/test-init.lisp: change :db-constraints for emplid to 
652         (:not-null :unique) as a temporary test for multiple column constraints 
653         in DEF-VIEW-CLASS. 
654         * tests/test-oodml.lisp: add tests for *DB-AUTO-SYNC* and 
655         return type of (SETF SLOT-VALUE-USING-CLASS). 
656         * TODO, doc/TODO: remove items done. 
657         * README: fix typo. 
658         
659 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
660         * sql/oodml.lisp: on Lispworks, use weak valued hash tables for 
661         object caching. 
662         * sql/expressions.lisp: Fix SQL generation for the symbol NIL. 
663
664 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
665         * sql/expressions.lisp: reactivate caching of generated SQL strings. 
666         Move methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY 
667         here from sql/fdml.lisp. Rationalise behaviour of SQL-OUTPUT, 
668         OUTPUT-SQL and DATABASE-OUTPUT-SQL. 
669         * sql/fdml.lisp: remove disabled method ADD-STORAGE-CLASS. Move 
670         methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY to 
671         sql/expressions.lisp. 
672         * sql/ooddl.lisp: replace call to DATABASE-OUTPUT-SQL in 
673         DATABASE-PKEY-CONSTRAINT with call to SQL-OUTPUT. 
674         * sql/generics.lisp: add docstrings. 
675
676 15 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
677         * Version 2.11.16
678         * db-oracle/oracle-sql.lisp: Remove OpenMCL specific
679         code in favor of fixing UFFI with James Bielman's patch
680         
681 14 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
682         * Version 2.11.15
683         * db-oracle/oracle-sql.lisp: Apply patch for OpenMCL/OSX
684         from James Bielman
685         
686 14 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
687         * README, INSTALL: update URLs. Minor updates to descriptions. 
688         * tests/README: remove stuff about editing contexts. 
689
690 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
691         * db-oracle/oracle-objects.lisp: Change *default-varchar-length* to 
692         *default-string-length*
693         
694 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
695         * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping 
696         of single quotes. 
697         * tests/test-fddl.lisp: add tests for column and table constraints 
698         in CREATE-TABLE. Add test for OWNER keyword parameter to 
699         LIST-TABLES (assuming same underlying machinery in other FDDL 
700         functions). 
701         * tests/test-init.lisp: restrict above test to postgresql and oracle. 
702         
703 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
704         * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio 
705         Bignoli.
706
707 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
708         * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
709         
710 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
711         * Version 2.11.14
712         * doc/*.xml: documentation additionals and fixes so
713         that docbook passes xmllint.
714         
715 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
716         * Version 2.11.13
717         * sql/fdml.lisp: Apply patch from Kim Minh Kaplan 
718         to change escaping of single quotes. Mild optimizations
719         for escaped string output.
720         * doc/ref-ooddl.lisp: documentation additions
721         * doc/ref-oodml.lisp: Add purpose to functions
722         * TODO: Add need to test single quote escaping
723         
724 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
725         * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
726         * sql/ooddl.lisp: Added SMALLINT type
727         * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
728         * db-mysql/mysql-objects.lisp: Added SMALLINT type
729         * sql/package.lisp: Export SMALLINT
730         * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
731         db-constraints
732         
733 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
734         * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the 
735         recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS 
736         View Class slot option. 
737         * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class 
738         slot option accepting a list of constraints [reported by Travis Cross]. 
739         * doc/ref-fddl.xml: add some examples of specifying column and 
740         table constraints to the documentation for CREATE-TABLE. 
741         * TODO: add note about adding tests for table/column constraints. Add 
742         optimisation note about using cached attribute types in insert/update
743         operations. 
744         
745 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
746         * doc/appendix.xml: add notes about idiosyncrasies/unsupported 
747         features and so on the documentation for each backend. 
748         * doc/TODO: remove items done. 
749         * doc/ref-transaction.xml: add note in introduction about 
750         autocommit mode as a difference from CommonSQL. 
751         * doc/ref-syntax.xml: add notes about SQL syntax state functions 
752         being macros in CLSQL. Add note about SQL operators which are 
753         CLSQL extensions. 
754
755 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
756         * Version 2.11.12 released
757         * doc/ref-recording.xml: document SQL I/O recording. 
758         * doc/ref-prepared.xml: new file for documenting prepared statements. 
759         * doc/clsql.xml: comment out include for large object and CLSQL-SYS 
760         documentation. 
761         * doc/ref-conditions.xml: complete documentation of condition system. 
762         * doc/global-index.xml: add symbols from condition system and remove
763         those from LOB and prepared statement APIs. 
764         * doc/ref-fdml.xml: complete documentation of FDML.
765         * doc/glossary.xml: add View Class. 
766         * doc/TODO: remove items done. 
767         * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR. 
768         * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export 
769         additional slot accessors for condition classes. 
770
771 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
772         * doc/ref-ooddl.lisp: Add documentation
773         * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
774         and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
775         * doc/oodml.lisp: Rename references to new name of
776         *DEFAULT-STRING-LENGTH*
777
778 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
779         * doc/ref-transaction.xml: document transaction handling. 
780         * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and 
781         START-TRANSACTION return NIL as per the CommonSQL spec. Modify 
782         ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is 
783         passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
784         Added docstrings. 
785
786 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
787         * doc/ref-fdml.xml: document the FDML. 
788         * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here. 
789         * sql/ooddl.lisp: moved *default-varchar-length* to here from 
790         oodml.lisp and renamed to *default-string-length*
791         
792 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
793         * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
794         to allow specifying transactionless table creation
795         * doc/ref-oodml.lisp: Add new keyword to signature of 
796         DEF-VIEW-FROM-CLASS     
797         
798 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
799         * Version 2.11.11
800         * sql/expressions.lisp: when removing duplicate table identifiers 
801         in the FROM clause of a query, check both table name and alias 
802         are equivalent. 
803         * sql/fdml.lisp: remove DESCRIBE-TABLE. 
804         * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and 
805         DATABASE-DESCRIBE-TABLE. 
806         * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE 
807         and LIST-TABLE-INDEXES. 
808         * sql/generic-postgresql.lisp: add reader conditional #+nil for 
809         DATABASE-DESCRIBE-TABLE and comment about its uses for 
810         re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query 
811         returning type info for all attributes. 
812         Fix DATABASE-SEQUENCE-LAST. 
813         * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine 
814         LIST-INDEXES with additional keyword parameter :ON. 
815         * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3 
816         with LIST-INDEXES (with :ON parameter). 
817         * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES. 
818         * doc/ref-connect.xml: minor tidying. 
819         * doc/ref-fddl.xml: document the FDDL. 
820         * doc/TODO: removed items done. Moved note about transaction handling 
821         from TODO to here. 
822         * TODO: move note about transaction handling to doc/TODO. Added 
823         optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES. 
824         
825 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
826         * Version 2.11.10
827         * sql/syntax.lisp: updated docstrings. 
828         * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL 
829         package.
830         * sql/database.lisp: add docstrings for CREATE-DATABASE, 
831         DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace 
832         CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR. 
833         * doc/ref-syntax.xml, doc/global-index.xml: minor tidying. 
834         * doc/ref-connect.xml: document connection/initialisation. 
835         * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here. 
836         * doc/TODO: remove items done. 
837         * Makefile: add db-oracle to to SUBDIRS. 
838
839 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
840         * sql/oodml.lisp: Add new serialization functions:
841         WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
842         * sql/expressions.lisp: Avoid duplicate FROM names when selecting
843         from a table that has more than one primary index.
844         * sql/conditions.lisp: Fix printing of closed-database error
845         
846 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
847         * Version 2.11.9
848         * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
849         * sql/transactions.lisp: Correctly set slots of SQL-WARNING
850
851 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
852         * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses 
853         of SQL-EXPRESSION from CLSQL-SYS. 
854         * sql/syntax.lisp: make error signalled in SQL-OPERATION an 
855         SQL-USER-ERROR. Make SQL-OPERATOR return just one value. 
856         * doc/Makefile: added Mandrake linux. 
857         * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files. 
858         * doc/appendix.xml: fixed little typo (adsf). 
859         * doc/glossary.xml: removed closed-database and note about 
860         sql-expression, added some entries. 
861         * doc/ref-syntax.xml: documented the symbolic SQL syntax. 
862
863 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
864         * Version 2.11.8
865         * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
866         * multiple: Add generalized-boolean type as requested by
867         Edi Weitz
868         * TODO: Added need for test of generalized-boolean
869         
870 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
871         * Version 2.11.7 released
872         * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
873         for loading with clc-register-user-package. Remove personal
874         directory from path lisp.
875         * db-mysql/mysql-loader.lisp: Similar changes
876         
877 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
878         * Version 2.11.6 released
879         * sql/oodml.lisp: Commit patch from Edi Weitz
880         to fix symbol writing/reading
881         * TODO: Add need for symbol slot test
882         
883 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
884         * sql/package.lisp: remove duplicate export of 
885         *CACHE-TABLE-QUERIES-DEFAULT*. 
886         * doc/ref-*.xml, doc/global-index.xml: new files documenting 
887         the CommonSQL compatible api. 
888         * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to 
889         reflect changes in return values of WITH-TRANSACTION. 
890
891 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
892         * tests/README: Fix filename [reported by Bill Clementson]
893         * sql/transactions.lisp: Apply return value patch from
894         Edi Weitz for WITH-TRANSACTION
895         * tests/README: Remove ptester package requirement (as noted
896         by Bill Clementson)
897         
898 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
899         * Version 2.11.5 released
900         * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
901         Select connection-spec based on connection type. Bugs reported by
902         Bill Clementson.
903         * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
904         * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
905         name on Windows, add \bin\ directory to search path
906         
907 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
908         * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in 
909         DATABASE-CONNECT. 
910         * sql/operations.lisp: substr now generates SUBSTR for use on 
911         Oracle; added a new operator SUBSTRING for use elsewhere. minus 
912         now generates MINUS for use on Oracle. Nvl signals an error if 
913         not called with exactly 2 arguments. Add concat function for use 
914         instead of the || operator on MySQL and Oracle. 
915         * sql/syntax.lisp: changed internal symbol for the || operator to 
916         CONCAT-OP. 
917         * sql/expressions.lisp: removed redundant and unused functions 
918         GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
919         (cf. MAKE-CONSTRAINTS-DESCRIPTION). 
920         * sql/generics.lisp: removed generic function for 
921         DATABASE-CONSTRAINT-DESCRIPTION (see above). 
922         * tests/test-syntax.lisp: modified/added tests according to changes
923         in sql/operations.lisp. 
924         * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test 
925         :fdml/select/21.  
926         * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP 
927         and SQL-USERENV to the shared exports list. Removed 
928         ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION, 
929         DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION, 
930         TRANSACTION-LEVEL, TRANSACTION,  RECORD-SQL-COMMAND and 
931         RECORD-SQL-RESULT from shared exports list. 
932         
933 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
934         * db-postgresql/postgresl-sql.lisp: Avoid computing
935         result-types lisp when nil result-types. Return only
936         one value when field-types nil.
937         * db-mysql/mysql-sql.lisp: Simple queries now
938         working with prepared statements.
939         
940 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
941         * Version 2.11.4: MySQL 4.1 now passes all tests
942         * sql/package.lisp: Add API for prepared statments.
943         * sql/fdml.lisp: Change implicit flatp processing
944         for string map-query for greater CommonSQL conformance.
945         Add high-high API for prepared statements.
946         * tests/test-basic.lisp: Add test for map-query and
947         single argument.
948         * sql/transactions.lisp: Change name/semantics of
949         autocommit to set-autocommit.
950         * sql/generic-postgresql.lisp: Add support for
951         prepared statements. 
952         * tests/test-internal.lisp: New file
953         * sql/odbc-api.lisp: Update to using ODBC V3 protocol
954         * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
955         Controller invocation.
956         * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
957         * sql/expressions.lisp: Avoid emitting double parenthesis when a
958         function contains a subselect. 
959         
960 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
961         * Version 2.11.3
962         * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
963         type (setf slot-value-using-class)
964         * TODO: add not that need a test case for the above fix
965         * db-sqlite: Remove clisp support since clisp can not run CLSQL
966         with its MOP usage
967         * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as 
968         introduced in Oracle8. Leave older code selectable by a reader macro
969         for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
970         uses OCILogon and does not the more complex session management.
971         
972 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
973         * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
974         * test/test-init.lisp: Add universal-time slot to person.
975         * test/test-fddl.lisp: Add tests of universal-time slot
976         * test/test-ooddl.lisp: Test universal-time slot in an object
977         * TODO: Remove need for universal-time test     
978         * debian/rules, debian/control: Add cl-sql-oracle binary package
979         * doc/appendix.xml: Add Oracle backend information
980         * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
981         universal-time. Convert BIGINT CLSQL type to CHAR SQL type
982         * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
983         * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
984         for map-query to reflect changed in arguments to be CommonSQL compatible.
985         Updated old clsql conditions to new CommonSQL compatible conditions.
986         
987 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
988         * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
989         type. Added *default-varchar-length* rather than previous hard-coded
990         varchar length. Remove 'simple-string and 'simple-base-string since they
991         are subtypes of 'string.
992         * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
993         local hard-coded value.
994         * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
995         type string. Convert specified-type (CHAR n) to string. Convert specified-type
996         CHAR to lisp type character.
997         * sql/generic-postgresql.lisp: (string n) => (CHAR n)
998         * sql/operations.lisp: Add userenv
999         * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
1000         slot tests
1001         * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
1002         * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
1003         * test/test-init.lisp: Add large table with bigint slot
1004         
1005 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1006         * Version 2.11.1 released: Much simpler Oracle client library loading.
1007         Now uses ORACLE_HOME environmental variable as well as tests default
1008         path for Oracle Instant Client. 
1009         
1010 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1011         * Version 2.11.0 released: Full Oracle support. All tests pass
1012         * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
1013         * tests/test-init.lisp: capitalize odbc backend name in banner
1014         * CONTRIBUTORS: Add note about Marcus' excellent work
1015         * sql/oodml.lisp: Removed old stub function     
1016         * clsql.asd: Use module names in current package rather than keyword package
1017         * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
1018         in setting sequence position. Make autocommits more efficient.
1019         * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax 
1020         * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
1021         strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
1022         and read-sql-value for NUMBER and CHAR.
1023         * sql/base-classes.lisp: Add autocommit slot
1024         * sql/transaction.lisp: Added autocommit processing, mild cleaning.
1025         * doc/intro.xml: Add Oracle
1026         
1027 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk) 
1028         * db-postgresql-socket/postgresql-socket-sql.lisp: replace 
1029         CLSQL-SIMPLE-WARNING with SQL-WARNING. 
1030         * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with 
1031         SQL-WARNING. 
1032         * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR. 
1033         * clsql.asd: reworked module structure in package definition and 
1034         file names to better reflect component functionality. 
1035         * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to 
1036         exports list. Removed duplicate and obsolete exports. Exported 
1037         remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT, 
1038         SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and 
1039         according to whether they are specified by CommonSQL or CLSQL 
1040         extensions. 
1041         * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with 
1042         SQL-WARNING. 
1043         * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND 
1044         here from basic-sql.lisp. 
1045         * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted). 
1046         * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted). 
1047         * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
1048         (both deleted). 
1049         * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted). 
1050         * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted). 
1051         
1052 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1053         * Version 2.10.22 released
1054         * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
1055         has reversed class slots, change the default for ordered-class-slots so that slots
1056         are now in the same order an in the def-view-class.
1057         * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
1058         * test/test-fddl.lisp: Add two tests for mixed case names
1059         * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
1060         for computed fields, this will require some adjustment to the test suite which
1061         in many cases expects integers.
1062         * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
1063         
1064 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
1065         * Version 2.10.21 released
1066         * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
1067         db-odbc, and db-aodbc.
1068         * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
1069         DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
1070         * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
1071         * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to 
1072         sql/generic-odbc.lisp
1073         * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp: 
1074         Move common code to  sql/generic-postgresql.lisp
1075         * sql/classes.lisp: honor case of string tables when outputting queries 
1076         * sql/objects.lisp: Add database type to default database-get-type-specifier method
1077         * sql/sql.lisp:  Add database type to default database-abort-transaction method
1078         * db-mysql/mysql-objects.lisp: New file
1079         * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
1080         * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
1081         from environment
1082         * test/test-fdml.lisp: String table names are now case sensitive, so convert to
1083         default db case for FDML/SELECT/25
1084
1085 22 May 2004 Kevin Rosenberg
1086         * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
1087         * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
1088         and string identifiers with non-default case
1089         * sql/table.lisp: Don't convert string table name to a symbol.
1090         * sql/classes.lisp: Honor case of string identifiers
1091         * sql/sql.lisp: Ensure recyclebin is purged for Oracle in 
1092         TRUNCATE-DATABASE
1093         * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
1094         of owner phrases. Obtain server and client versions.
1095         * db-oracle/oracle-objects.lisp: Fix type specifiers
1096         * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
1097         * tests/test-init.lisp: Properly get username from Oracle connection-spec
1098         
1099 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1100         * sql/generics.lisp: reworked docstrings. Remove generics for 
1101         ADD-TO-RELATION and REMOVE-FROM-RELATION. 
1102         * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS 
1103         to UPDATE-OBJECTS-JOINS for CommonSQL compatibility. 
1104         * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS 
1105         for CommonSQL compatibility. Remove ADD-TO-RELATION and 
1106         REMOVE-FROM-RELATION. 
1107         * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to 
1108         UPDATE-OBJECTS-JOINS for CommonSQL compatibility. 
1109         * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS. 
1110         * sql/conditions.lisp: add documentation for conditions. Add 
1111         SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility. 
1112
1113 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1114         * sql/basic-sql.lisp: reworked docstrings. 
1115         * sql/transactions.lisp: reworked docstrings. 
1116         * sql/sql.lisp: reworked docstrings. 
1117         * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE 
1118         sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility. 
1119         * sql/database.lisp: reworked docstrings. 
1120         * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P 
1121         and FDML extensions and database extensions. 
1122
1123 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1124         * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
1125         * db-oracle/make9.sh: add makefile for building with Oracle 9 client
1126         libraries
1127         * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
1128         Oracle versions with the PURGE option required for drop table. This needs
1129         to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
1130
1131 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1132         * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE. 
1133         * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION. 
1134         * sql/table.lisp: reworked docstrings. 
1135         * sql/objects.lisp: moved *default-update-objects-max-len* here from 
1136         table.lisp. 
1137         * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE, 
1138         DROP-VIEW and DROP-INDEX and the use of the :transactions and 
1139         :constraints keyword args to CREATE-TABLE. 
1140         * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now 
1141         CommonSQL compatible with respect to column constraints. 
1142
1143 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1144         * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
1145         Requires UFFI 1.5.0 or higher
1146         
1147 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1148         * Version 2.10.19
1149         * sql/conditions.lisp: Fix cerror
1150         
1151 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1152         * Version 2.10.18 released: New condition hierarchy to be compatible
1153         with CommonSQL -- not backward compatible with previous CLSQL.
1154         * sql/db-interface.lisp: Add more default methods
1155         * sql/objects.lisp: Add explicit table name to order-by parameters
1156         in find-all when only one table to avoid selecting a duplicate row.
1157         Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
1158         as previous logic was adding two fields (foo asc) to SELECT query.
1159         Make :result-types :auto be the default for object selections.
1160         Properly handle caching key when using multiple order-by with asc/desc
1161         directions.
1162         * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
1163         
1164 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1165         * sql/recording.lisp: reworked docstrings. 
1166         * sql/syntax.lisp: reworked docstrings. 
1167         * doc/TODO: added notes about extensions to SQL-RECORDING-P and the 
1168         SQL syntax state functions being macros. 
1169
1170 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1171         * sql/package.lisp: Export initialize-database-type and
1172         *initialize-database-types* from CLSQL package.
1173         * sql/conditions.lisp: Add new CommonSQL compatible conditions,
1174         remove old CLSQL conditions.
1175         * sql/loop-extensions.lisp: Make errors of type sql-user-error
1176         * */*.lisp: Convert to from old to new conditions
1177         
1178 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1179         * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
1180         To handle this difference, will need to add a new database-drop-table
1181         generic function.
1182         * db-oracle/oracle-sql.lisp: Move server-version and
1183         major-version-number to database object to allow multiple connections
1184         to Oracle servers of different versions.
1185         
1186 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1187         * TODO: moved notes about backends to doc/TODO. 
1188         * doc/TODO: added notes about backends and select extensions. 
1189         * sql/base-classes.lisp: remove obsolete schema slot in database 
1190         class. 
1191         
1192 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1193         * db-oracle/oracle-api: Add OCIServerVersion
1194         * db-oracle/oracle-sql: Query and store server version on connect
1195         * sql/db-interface.lisp: Add new db-type-has-bigint? generic
1196         function to handle OCI's lack of bigint support
1197         * test/test-basic.lisp: Separate bigint testing
1198         * test/test-utils.lisp: Add oracle to specs and list of backends
1199         * doc/TODO: New file
1200         * test/test-fdml.lisp: Added FDML/SELECT/34 to test
1201         run-time instantiation of variables in reader macros.
1202         * TODO: Remove item already complete. Add note about
1203         condition variances
1204         
1205 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1206         * sql/syntax.lisp: added condition to the reader macro to treat [*] 
1207         as a column identifier (rather than an operation) for CommonSQL 
1208         compatibility. 
1209         * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION 
1210         keword args to SELECT, [*] as column identifier, new MAP-QUERY 
1211         behaviour and the ANY and ALL operators in subqueries. 
1212         * tests/test-init.lisp: add set-operation and subquery tests to 
1213         appropriate skip lists. 
1214         * sql/objects.lisp: remove redundant and non CommonSQL compatible 
1215         ORDER-BY-DESCENDING keyword argument for SELECT. 
1216         * sql/classes.lisp: remove redundant and non CommonSQL compatible 
1217         ORDER-BY-DESCENDING keyword argument for SELECT. 
1218         * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT 
1219         with object queries. 
1220
1221 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1222         * sql/db-interface.lisp: Add new db-type-has-union? 
1223         since Mysql 3.23 does not support unions.
1224         * sql/test-init.lisp: Don't try union tests on database
1225         backends which do not support it.
1226         * db-oracle/*.lisp: initial port to UFFI
1227         * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
1228         implement REFRESH for SELECT.
1229         * tests/test-oodml.lisp: Add tests for deferred retrieval,
1230         caching, refresh, and update-object-joins
1231         * tests/test-init.lisp: Add deferred-employee-address class
1232         
1233 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1234         * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add 
1235         COALESCE operator and make NVL a synonym for this. Make ANY, SOME, 
1236         ALL and EXISTS generate function expressions so they output the 
1237         correct SQL. 
1238         * sql/classes.lisp: SELECT now generates appropriate SQL when 
1239         passed the SET-OPERATION and ALL keyword arguments. 
1240         * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now 
1241         accepts ordering constraints as pairs of the form (column direction) 
1242         where direction may be :ASC or :DESC. 
1243         * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL. 
1244         Correct tests for ANY, SOME, ALL and EXISTS. 
1245         * tests/test-fdml.lisp: added test for COALESCE. 
1246         * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION 
1247         using funcall unless QUERY-EXPRESSION returns one column and its 
1248         FLATP slot is not nil in which case apply is used. 
1249         * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the 
1250         changes. 
1251         * TODO: remove items done. 
1252         * db-postgresql/postgresql-sql.lisp: no need to reverse results in 
1253         DATABASE-LIST-ATTRIBUTES. 
1254         * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
1255         results in DATABASE-LIST-ATTRIBUTES.    
1256         
1257 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1258         * sql/classes.lisp: SELECT now accepts table identifiers as strings 
1259         for CommonSQL compliance. Add support for qualified sql identifiers 
1260         with aliased table names. 
1261         * tests/test-fdml.lisp: added tests for table identifiers as strings 
1262         in SELECT and for aliased definitions. 
1263         * tests/test-syntax.lisp: added tests for alias definitions. 
1264         
1265 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1266         * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and 
1267         field-names set to nil. 
1268         * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly 
1269         with null attribute values. 
1270         * sql/operations.lisp: modify SQL concatenation operator to accept 
1271         unescaped || symbol.  
1272         * sql/syntax.lisp: modify sql reader macro function to accept 
1273         unescaped sql concatenation operator. 
1274         * tests/test-fdml.lisp: unescape sql concatenation operator. 
1275         * tests/test-syntax.lisp: unescape sql concatenation operator. 
1276         * TODO: remove items done. Add notes about SQLITE/MYSQL backends. 
1277         Note to add test for universal-time. Note about difference from 
1278         CommonSQL in transaction handling. 
1279
1280 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1281         * tests/test-init.lisp: Add deferred-employee-address
1282         class
1283         * tests/test-oodml.lisp: Add deferred retrieval testgs
1284         
1285 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1286         * Version 2.10.17
1287         * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
1288         * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
1289         * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
1290         * *: Fix minor style warnings
1291         * clsql-classic: Remove system and subdirectory
1292         * clsql-base: Remove system and subdirectory and
1293         fold into clsql system
1294         * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
1295         as supported platform.
1296         
1297 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1298         * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
1299         * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
1300         Allegro 7.0beta AMD64
1301         * db-odbc/*.lisp: Add a layer of indirection to foreign-type
1302         of ODBC longs since this type can vary on 64-bit platforms depending
1303         upon the compilation options of unixODBC.
1304         * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
1305         structures found by testing with AllegroCL 7.0b AMD64.
1306         * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
1307         * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
1308         Initial caching support for SELECT
1309         * tests/test-oodml.lisp: Avoid using cache when testing select.
1310         * sql/kmr-mop.lisp: Explicitly check slot order and
1311         store as a cl:*feature*
1312         * sql/recording.lisp: Remove additional types to
1313         increase CommonSQL conformance.
1314         * tests/test-init.lisp: Change a :column attribute
1315         to test symbols as value
1316         * sql/relations.lisp: Remove functions since they don't support
1317         many to many relationships.
1318         * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
1319         of add-to-relations function and replace with explicit field settings.
1320         * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
1321         
1322 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1323         * Version 2.10.15
1324         * LATEST-TEST-RESULTS: results with current version
1325         * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
1326         since cmu19 has opposite order of class slots.
1327         * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
1328         * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
1329         a previous test
1330         * tests/test-init.lisp: Check test-database-underlying-type for
1331         ODBC/MySQL tests
1332         
1333 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1334         * sql/operations.lisp: complete remaining operations for the sql 
1335         syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT, 
1336         UNION, INTERSECT, BETWEEN. 
1337         * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION, 
1338         SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION. 
1339         * tests/test-syntax.lisp: add tests for new operations. 
1340         * tests/test-fdml.lisp: add tests for queries based on new operations. 
1341         * tests/test-init.lisp: add select/20 to tests skipped for sqlite and 
1342         select/20, query/5, query/7 and query/8 to tests skipped by mysql. 
1343         * TODO: removed entries done. 
1344
1345 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1346         * tests/benchmarks.lisp: Add immediate vs. deferred
1347         join test.
1348         
1349 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1350         * Version 2.10.13: Now works on openmcl 0.14.2 
1351         * sql/objects.lisp: Add :retrieval :immediate for
1352         object selections
1353         * tests/test-init.lisp: Add non-index fields for testing 
1354         join class employee-addresss
1355         * test/test-oodml.lisp: Add tests for retrieval immediate
1356         * sql/metaclasses.lisp: Handle differences in direct-slot-definition 
1357         values which are now listifed by openmcl 14.2.
1358         * sql/objects.lisp: more framework for supporing immediate retrieval 
1359
1360 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1361         * docs/intro.xml: Upload location of a README file
1362         * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
1363         changing the type-specifier. Use a lisp type of (OR NULL FOO)
1364         for a specified-type of FOO unless :db-constraints :not-null.
1365         No need to specialize finalize-inheritance for openmcl.
1366         * tests/test-*.lisp: Rename fields so that joins occur on
1367         fields with different names. This ensures that join code is
1368         selecting the proper name.
1369         * test/test-init.lisp: Add :base-table for employee-address
1370         view class for testing.
1371         * sql/objects.lisp: Use view-table rather than name of table
1372         in a number of places to fix errors noted with using :base-table.
1373
1374 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1375         * sql/objects.lisp: replace *update-records-on-make-instance* with 
1376         *db-auto-sync* which also controls both automatic creation of 
1377         new records on creation of new instance and updating of record 
1378         fields on setting of instance slots (as suggested by Edi Weitz). 
1379         * tests/test-init.lisp: replace *update-records-on-make-instance* 
1380         with *db-auto-sync*. 
1381         * sql/package.lisp: replace *update-records-on-make-instance* 
1382         with *db-auto-sync*. 
1383         * TODO: replace *update-records-on-make-instance* with *db-auto-sync*. 
1384         * sql/objects.lisp: remove redundant rebindings of *db-initializing* 
1385         and *default-database* in FIND-ALL. 
1386         * sql/package.lisp: import time functions from CLSQL-BASE. 
1387         * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
1388         * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
1389         * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
1390         * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with 
1391         CLSQL. 
1392
1393 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1394         * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
1395         now return a sql-object-query type rather than directly performing a query.
1396         This improves CommonSQL conformance.
1397         * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
1398         from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
1399         depend on sql-object-query-type.
1400         * sql/loop-extensions.lisp: Move from base package
1401         * classic/package.lisp: remove references to map-query and do-query
1402
1403 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1404         * TODO: New section on optimizations, especially optimizing JOINs.
1405         * sql/objects.lisp: Have :target-slot return of list of lists rather
1406         than a list of cons pairs to be conformant with CommonSQL.
1407         Make :target-slot much more efficient by using a SQL inner join
1408         statement and just requiring one SQL query. Add :retrieval :deferrred
1409         to target-slot joins. Add placeholder for update-objects-join.
1410         * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
1411         and process them for query output-sql. 
1412
1413 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1414         * Version 2.10.11
1415         * base/basic-sql.lisp: Avoid multiple evaluation
1416         of query-expression in DO-QUERY
1417         * sql/objects.lisp: Make SELECT a normal function.
1418         SELECT now accepts type-modified database identifiers, such as
1419         [foo :string] which means that the values in column foo are returned 
1420         as Lisp strings. Add new *update-records-on-make-instance* special
1421         variable controlling automatic creation of new instances. Add missing
1422         RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
1423         * sql/packages.lisp: Export *update-records-on-make-instance* 
1424         * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
1425         selections.
1426         * test/test-fdml.lisp: Add tests for type-modified
1427         database identifiers.
1428         * test/test-init.lisp: Stop using add-relation since implementing
1429         many-to-many joins. Use *update-records-on-make-instance* 
1430         to automatically store records on instance creation. Add many-to-many
1431         employee-address view-class.
1432         
1433 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1434         * Version 2.10.10
1435         * base/loop.lisp: Add object iteration. Use :result-type
1436         :auto for result-set. Remove 
1437         duplicate (and non-correct) code for non-list variables by
1438         simply making an atom variable into a list. 
1439         * sql/package.lisp: Remove unnecessary clsql-sys package
1440         and replace it with clsql.
1441         * sql/metaclasses.lisp: Properly store specified-type from
1442         direct-slot-definition and then store translated type in
1443         effective-slot-definition
1444         * sql/classes.lisp: Don't output type in sql-output
1445         for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
1446         [foo :integer] as fields in SELECT.
1447         * sql/query.lisp: Set default for :result-types to :auto in
1448         FDML QUERY.
1449         * sql/objects.lisp: Use specified-type when invocating 
1450         database-get-type-specifier. def-view-class macro now returns
1451         the class instance.
1452         * base/basic-sql.lisp: Make :AUTO the default value for
1453         :RESULT-TYPES for MAP-QUERY and DO-QUERY.
1454         * sql/objects.lisp: Add bigint type
1455         * test/tests-basic.lisp: Add tests for :result-types for
1456         MAP-QUERY and DO-QUERY
1457         * test/test-fdml.lisp: Add test for result-types in LOOP
1458         and also using single symbol rather than a list for variables.
1459         Add test that default :result-types is auto for FDML QUERY.
1460         * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
1461         of SQL-IDENT-ATTRIBUTE.
1462         * test/test-oodml.lisp: Enable OO loop iteration test,
1463         modify it so it doesn't depend on boolean where.
1464         
1465 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1466         * Version 2.10.9
1467         * sql/objects.lisp: added derived type specifier for universal time. 
1468         * sql/package.lisp: added #:universal-time to clsql-sys exports. 
1469         * tests/test-oodml.lisp: added test for translation of boolean slots 
1470         in SELECT with object queries. 
1471         
1472 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1473         * db-odbc/odbc-api.lisp: Fix changing nil to "NIL" 
1474         for odbc/postgresql backend.
1475         * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
1476         it can handle NIL values from the ODBC driver
1477         * tests/benchmarks.lisp: New file with initial
1478         benchmark suite
1479         * sql/relations.lisp: fix to add subclassing support,
1480         minor optimizations [Edi Weitz]
1481         
1482 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1483         * Version 2.10.8        
1484         * base/conditions.lisp: Add *backend-warning-behavior*
1485         special variable.
1486         * db-postgresql-socket/postgresql-socket-sql.lisp:
1487         Honor value of *backend-warning-behavior*
1488         * tests/test-fdml.lisp: Remove test of raw boolean value
1489         since different backends handle this differently. Add
1490         test for :column attribute.
1491         * tests/test-oodml.lisp: Add tests for boolean slot value
1492         and for :void-value attribute
1493         * tests/test-init.lisp: Use *backend-warning-behavior*
1494         to suppress warnings from postgresql about implicitly
1495         creating primary key in tables. Add new address table.
1496         
1497 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1498         * Version 2.10.7
1499         * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
1500         result-types is :auto
1501         * sql/objects.lisp: Properly handled writing/reading Boolean
1502         values from SQL database when retrieving objects.
1503         * test/test-fdml.lisp: Add another test for boolean results
1504         * test/utils.lisp: Fix incorrect declaration
1505         
1506 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1507         * Version 2.10.6
1508         * sql/generics.lisp: add generic function for SELECT. 
1509         * sql/objects.lisp: make SELECT a method specialisation. 
1510         * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections 
1511         referred to are View Classes. 
1512         * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the 
1513         query-expression arg evaluates to a list, then we have an object 
1514         query. 
1515         * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with 
1516         object queries. 
1517         * TODO: remove items done and add a todo for SELECT. 
1518         * sql/objects.lisp: SELECT takes a :field-names arg to pass on to 
1519         QUERY. 
1520         * sql/sql.lisp: add :field-names arg to QUERY. 
1521         * tests/test-fdml.lisp: minor rework to use :field-names arg to 
1522         SELECT. 
1523
1524 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
1525         * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2 
1526         or more View Classes. 
1527         * sql/objects.lisp: make the :flatp argument to SELECT work with 
1528         object queries. 
1529         * sql/objects.lisp: make SELECT accept a :result-types argument 
1530         (defaults to :auto) which is passed on to QUERY.  
1531         * sql/objects.lisp: SELECT returns field-names as a second value. 
1532         * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate. 
1533         * tests/test-fdml.lisp: add flatp/result-types arguments to calls 
1534         to SELECT and take only first value as appropriate.
1535         * tests/test-fdml.lisp: add two new tests for query result coercion 
1536         and the field-names returned as a second value from SELECT. 
1537         * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate. 
1538         
1539 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1540         * Version 2.10.6-pre1
1541         * sql/metaclasses.lisp: Add void-value slot
1542         * doc/csql.xml: Update def-view-class documentation
1543         * test/test-init.lisp: Change old :db-type to :db-kind.
1544         Remove old :nulls-ok attributes.
1545         * sql/objects.lisp: Add new universal-time and bigint
1546         types. Optimize reading of integers using parse-integer
1547         rather than read-from-string.
1548         * */*.lisp: Merge clsql-base-sys and clsql-base packages
1549         into clsql-base package
1550         * classic/sql.lisp: Move large object support into base, leaving
1551         classic without any functionality that is provided in the clsql
1552         system.
1553         * classic/package.lisp: Rename clsql-classic-sys package to
1554         its former nickname of clsql-classic
1555         
1556 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1557         * Version 2.10.5: SQLite backend now passes all result-types tests
1558         * clsql-sqlite.asd: Depend on clsql-uffi system
1559         * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
1560         for efficiency and code reuse. 
1561         * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
1562         for better cross-implementation compatibility.
1563
1564 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1565         * Version 2.10.4
1566         * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
1567         [Marcus Pearce]
1568         * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
1569         bug on SBCL in result-field-names function as reported by Marcus Pearce
1570         * db-sqlite/sqlite-sql.lisp: Fix  in database-store-next-row
1571         manifest in SBCL testing
1572         
1573 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1574         * Version 2.10.3
1575         * sql/database.lisp: Conform more to CommonSQL output
1576         for STATUS command [Marcus Pearce]
1577         * sql/sqlite-sql.lisp: Rework to use result-types
1578         * sql/sqlite-api-clisp.lisp: Add compatibility layer
1579         with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
1580         be cleaned up of most clisp reader conditionals
1581         * sql/test-init.lisp: Now run field type tests on sqlite
1582         backend
1583         
1584 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1585         * Version 2.10.2
1586         * base/basic-sql.lisp: Set default value of :result-types 
1587         to :auto for more CommonSQL conformance. 
1588         * test/test-fdml.lisp: Add tests for numeric value of fields
1589         
1590
1591 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1592         * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
1593         * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
1594         Return field names as second value for QUERY. This can be overridden
1595         for efficiency with the new keyword :FIELD-NAMES set to NIL
1596         in the QUERY invocation.
1597         * test/test-fdml.lisp: Add tests for new field-name feature
1598         * sql/metaclass.lisp: Remove old Lispworks cruft
1599         and replace it with invocation of new code in kmr-mop.lisp
1600         which actually works with Lispworks 4.2
1601         * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
1602         QUERY function
1603         * base/db-interface.lisp: Document the multiple values
1604         returned by DATABASE-ATTRIBUTE-TYPE so matches the
1605         undocumented CommonSQL behavior. 
1606         * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
1607         *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
1608         LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
1609         Implement CACHE-TABLE-QUERIES.
1610         * db-odbc/odbc-sql.lisp: Fix attribute-type function
1611         * test/test-fddl.lisp: Add tests for attribute type     
1612         * db-mysql/mysql-sql.lisp: Mild optimization in accessing
1613         field structures.
1614         * base/classes.lisp: Add attribute-cache slot to database clas
1615         * base/initialize.lisp: initialize-database-type now automatically
1616         loads database-type backend as needed.
1617         * base/test-init.lisp: Utilize new initialize-database-type functionality.
1618         * TODO: remove items done
1619         
1620 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1621         * Version 2.9.6
1622         * sql/objects.lisp: remove create/drop-sequence-from-class. 
1623         * sql/objects.lisp: add INSTANCE-REFRESHED generic function. 
1624         * sql/objects.lisp: improved CommonSQL compatibility for
1625         UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
1626         UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS. 
1627         * sql/generics.lisp: move generics from objects.lisp to here. 
1628         
1629 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1630         * Version 2.9.6-pre1
1631         * db-mysql/mysql-client-info.lisp: Add client version 4.1
1632         detection
1633         * sql/sql.lisp: Make *default-database* the default for
1634         TRUNCATE-DATABASE
1635         
1636 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1637         * Version 2.9.5
1638         * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
1639         detection
1640         * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying 
1641         :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes 
1642         on a metaclass specialized from standard-db-class.
1643
1644         
1645 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1646         * Version 2.9.4: Multiple changes to support Allegro's "modern"
1647         lisp which uses a lowercase reader and has case-sensitive symbols
1648         * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
1649         exposed by case-sensitive mlisp. 
1650
1651 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1652         * Version 2.9.3: All tests now pass on all platforms!
1653         * LATEST-TEST-RESULTS: New file with summary of test results
1654         * sql/generics.lisp: New file for generic function definitions.
1655         * test/test-init.lisp: Display names of skipped tests.
1656         Use unwind-protect to ensure disconnect
1657         * sql/objects.lisp: Change database-type to database-underlying-type
1658         so that actual database engine is properly identified
1659         * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
1660         return an ISO timestring for compatibility with other drivers.
1661         Workaround bug in MyODBC for LIST-TABLE-INDEXES
1662         * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
1663         returns floating-point values for floor and truncate operations 
1664         * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
1665         * tests/test-basic.lisp: Port to regression tester
1666         * test/test-init.lisp: Output to *report-stream*
1667         * docs/appendix.xml: Document ODBC and SQLite backends.
1668         * sql/classes.lisp: Make output-sql require a database parameter.
1669         This allows SQL generation to have the proper case to support
1670         the differences in case handling between CommonSQL API,
1671         Postgresql, MySQL, Oracle.
1672         
1673 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1674         * Version 2.9.2: Improvments in database capability introspection
1675         and querying. Support transactions in MySQL where available.
1676         All tests now pass on MySQL and SQLite in addition to postgresql
1677         and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
1678         * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
1679         DATABASE-LIST-SEQUENCES.
1680         * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
1681         * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
1682         HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
1683         * tests/*.lisp: Check database capabilities and remove tests which
1684         the database backend does not support
1685         * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
1686         controls whether InnoDB tables will be created when supported on
1687         the underlying MySQL server.
1688         
1689 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1690         * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
1691         supported by all database backends (except AODBC since
1692         AODBC doesn't support index querying)
1693         * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
1694         * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
1695         to support index queries
1696         * db-aodbc/aodbc-sql.lisp: Filter driver manager
1697         "information_schema" tables from LIST-TABLES
1698         * tests/test-basic.lisp: Remove table after testing
1699         * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
1700         * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
1701         which gets the underlying type of database -- required
1702         when dealing with ODBC databases and want to query
1703         database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
1704         as first database-backend specific feature. Is T on
1705         :mysql, NIL on other backends. Change DROP-TABLE to
1706         query this.
1707         
1708 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1709         * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
1710
1711 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1712         * Version 2.8.1
1713         * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function 
1714         * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function 
1715
1716 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1717         * Version 2.8.0: New API function: LIST-DATABASES
1718         * base/utils.lisp: Fix command-output on CMUCL/SBCL
1719         * db-*/*-sql.lisp: Add new database-list function
1720         * base/database.lisp: Add new LIST-DATABASES command
1721         
1722 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1723         * Version 2.7.9
1724         * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
1725         * db-sqlite/sqlite-api-uffi.lisp: Print error string
1726         correctly.
1727         
1728 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1729         * Version 2.7.7
1730         * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
1731         from Eduardo Munoz.
1732         
1733 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1734         * Version 2.7.6
1735         * base/objects.lisp, base/classes.lisp: Patch
1736         for db-kind from Eduardo Munoz
1737         
1738 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1739         * Version 2.7.5
1740         * base/basic-sql.lisp: Fix FLATP in QUERY
1741
1742 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1743         * Version 2.7.3: Implement RECONNECT
1744
1745 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1746         * Version 2.7.2: Fix ODBC on Lispworks Windows
1747
1748 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1749         * Version 2.7.1: Fix for new ODBC backend.
1750         clsql-odbc now works on SBCL, CMUCL, OpenMCL
1751         in addition to AllegroCL and Lispworks.
1752
1753 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1754         * Version 2.7.0: New backend: ODBC. Tests as
1755         well as AODBC backend on Allegro,Lispworks.
1756         SBCL and CMUCL don't work quite yet.  Requires UFFI v1.4.11+
1757         * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
1758         to explicitly set ODBC2 support. Add BIGINT support.
1759         Add result-types support. Added SQLTables.
1760         Fix array type in fetch-all-rows. Make width
1761         changable by database or query.
1762         * base/utils.lisp: Add process functions
1763         * base/package.lisp: Export utils to CLSQL-BASE-SYS
1764         * db-aodbc: Implement sequence functions,
1765         database-list-tables, database-list-attributes
1766         * tests/utils.lisp: Add support for ODBC backend,
1767         rework READ-SPECS to use +all-db-types+
1768         * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
1769         for SEQUENCE-NEXT
1770         
1771 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1772         * Version 2.6.13. Requires UFFI version 1.4.9
1773         * db-odbc/*.lisp: Further porting.
1774         Pre-alpha code! But, basic query is now working.
1775
1776 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1777         * Version 2.6.12
1778         * base/transactions.lisp: Add quote for macro
1779         expansion of WITH-TRANSACTIONS [Time Howe]
1780         * db-sqlite/sqlite-sql.lisp: Support memory database
1781         in database-probe [Ng Pheng Siong]
1782         * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
1783         The DBI layer is not finished.
1784         
1785 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1786         * Version 2.6.11
1787         * sql/objects.lisp: add :root-class functionality for
1788         list-classes and add duration type support [Marcus Pearce]
1789         * db-odbc: Add mid-level [DBI] layer
1790
1791 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1792         * Version 2.6.10
1793         * db-aodbc: Add methods for generic functions, some are
1794         not yet implemented.
1795         * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
1796         support
1797
1798 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1799         * Version 2.6.9
1800         * base/package.lisp: Add missing symbols [Marcus Pearce]
1801
1802 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1803         * Version 2.6.8
1804         * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
1805         * utils/time.lisp: Multiple fixes [Marcus Pearce]
1806         * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
1807         
1808 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1809         * Version 2.6.7
1810         * sql/*.lisp: Remove schema versioning cruft
1811         [Marcus Pearce]
1812         * Makefile: Add classic subdirectory
1813         
1814 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1815         * Version 2.6.6
1816         * sql/sql.lisp: Fix TRUNCATE command, bug reported
1817         by Marcus Pearce
1818         * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
1819         specific and easy for an application to directly support.
1820         Idea from Marcus Pearce.
1821         * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level 
1822         API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
1823         Keep low-level interface for future optimization
1824         supporting LIST-ATTRIBUTE-TYPES command.
1825         * Makefile: Add to db-sqlite and test directories.
1826         Include them in top-level Makefile
1827         
1828 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1829         * Version 2.6.5
1830         * sql/relations.lisp: Add missing file
1831         * utils/time.lisp: Fixes/extensions [Marcus Pearce]
1832         * test/test-time.lips: New file [Marcus Pearce]
1833         
1834 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1835         * Version 2.6.4
1836         * test/test-init.lisp: Properly handle object
1837         creation. Close database after use.
1838         * sql/sql.lisp: Make DESCRIBE-TABLE a generic
1839         function so can have methods specialized on
1840         table being a string or an sql-table object.
1841         * base/pool.lisp: Really fix CMUCL locking
1842         
1843 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1844         * Version 2.6.3
1845         * test/test-init.lisp: Signal correctly
1846         if any errors occurred in any test suite
1847         * base/loop-extensions.lisp: Fix error
1848         introduced for Lispworks
1849         * base/pool.lisp: Fix locking for CMUCL
1850         * base/objects.lisp: Remove schema-version cruft
1851         
1852 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1853         * Version 2.6.2: New CLSQL API functions:
1854         DESCRIBE-TABLE AND TRUNCATE-DATABASE
1855         Currently, this are only supported on :postgresql
1856         and :postgresql-socket
1857         * base/database.lisp: automatically load ASDF system
1858         in CONNECT if not already loaded
1859         * base/tests.lisp: disconnect database after testing 
1860         * base/*.lisp: Remove CLOSED-DATABASE type in favor
1861         of storing open/closed status in slot of database
1862         * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
1863         * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
1864         DATABASE-DESCRIBE-TABLE
1865         * db-sqlite/sqlite-sql.lisp: Add missing slots in database
1866         * base/conditions: Remove duplicate condition
1867         * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
1868         * base/recording.lisp: Add new :QUERY type for recording
1869         
1870 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1871         * Version 2.6.1: documentation fixes, merged
1872         classic-tests into tests
1873
1874 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1875         * Version 2.6.0 released: New API functions
1876         CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
1877         * doc/ref_clsql.xml: Document new functions
1878         * base/database.lisp: New API functions
1879         * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
1880         * base/utils.lisp: Fix use of position-char.
1881         Add COMMAND-OUTPUT used by backends for running
1882         external programs. Fix parsing of SQL*NET-compatible
1883         connection-specs.
1884         * base/loop-extension.lisp: Simplify package use
1885         for Lispworks and Allegro
1886         * db-*/*-sql.lisp: Added DATABASE-CREATE,
1887         DATABASE-DESTORY, PROBE-DATABASE methods
1888         * tests/test-init.lisp, clasic-tests/tests.lisp:
1889         Use destroy-database and create-database to ensure 
1890         testing with empty database
1891         * tests/test-connection.lisp: Add tests for
1892         parsing of string connection-specs
1893         * examples/run-tests.sh: New file for running
1894         test suite on all installed CL implementations
1895         * examples/clsql-tutorial.lisp: moved from
1896         doc directory
1897         * examples/dot.clsql-tests.config: New file
1898         giving an example test configuration
1899         * test/README: Add notes about rtest/ptester
1900         downloads and link to sample test configuration file.
1901         
1902 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1903         * Version 2.5.1 released:
1904         * tests/*.lisp: Rework so tests are run
1905         on multiple backends automatically based
1906         on the contents of ~/.clsql-tests.config.
1907         Reuse helper functions from classic-tests.
1908         * base/database.lisp: Support connection-spec
1909         as string for CONNECT
1910         * classic-tests/tests.lisp: Automatically
1911         load database backends as needed. 
1912         
1913 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1914         * Version 2.5.0 released:
1915         All tests for CLSQL and CLSQL-CLASSIC pass
1916         on all platforms.
1917         * base/loop-extension.lisp: Add Lispworks
1918         loop-extension. Improve type specifying on
1919         other platforms.
1920         
1921 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1922         * Version 2.4.2 released:
1923         loop extension now supported on Allegro, all
1924         CLSQL-TESTS pass on Allegro.
1925         * sql/metaclasses.lisp: Some optimization
1926         of compute-slots, be selective when
1927         ordered-class-slots needs to be called
1928         instead of class-slots
1929         * TODO: add URL with documentation on
1930         extending Lispworks LOOP form
1931         
1932 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1933         * Version 2.4.1 released: CLSQL-TESt suite passes
1934         all tests for postgresql and CMUCL, SBCL, OpenMCL.
1935         Allegro and Lispworks pass all tests except for
1936         FDML/LOOP/1 since the loop extension have not yet
1937         been ported to those implementions.
1938         * sql/metaclasses.lisp: Added new slot to standard-db-class
1939         to hold user-specified type. OpenMCL adjustments to compensate
1940         for its type-predicate function. Since AllegroCL, Lispworks,
1941         and OpenMCL have different slot orders, added compute-slots
1942         and ordered-class-slots functions so their slot order matches
1943         SBCL/CMUCL.
1944
1945 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1946         * Version 2.4.0 released: All tests for clsql-classic now finish
1947         correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
1948         mysql, postgresql, postgresql-sockets, and sqlite backends.
1949         * db-mysql/mysql-sql.lisp: Fix array dereferencing
1950         * classic-tests/tests.lisp: Fix package name of
1951         number-to-sql-string. 
1952         * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
1953         * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
1954         now passes tests on all support UFFI platforms.
1955         * db-postgresql-socket/postgresql-socket-api.list: Ported to 
1956         SBCL and OpenMCL
1957         * multiple: Finish renaming of :types keyword to :result-types for
1958         greater CommonSQL compatibility, including documentation
1959         * sql/basic-cmds.lisp: Remove obsolete file
1960         
1961 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1962         * Version 2.3.3 released
1963         * Fixes for sequences on mysql and sqlite [Marcus Pearce]
1964         * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
1965         * Fix for schema table [Marcus Pearce]
1966         * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
1967         * Fixes to test suite [Marcus Pearce]
1968
1969 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1970         * db-*/*-sql.lisp: Ensure that expr in
1971         database-query-result-set is a string
1972         * Documentation integration
1973         
1974 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1975         * With for Marcus Pearce's excellent work, I've merged
1976         his clsql-usql port into clsql. The original clsql
1977         interface is available in the clsql-classic package.
1978
1979 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1980         * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
1981         adding further support for providing backend for UncommonSQL
1982
1983 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
1984         * Integrate patch from Aurelio Bignoli for SQLite backend
1985
1986 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
1987         * Converted documentation to XML format
1988         * Made package installable with asdf-install
1989
1990 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
1991         * Add for-each-row macro
1992
1993 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
1994         * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
1995         
1996 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
1997         * Add support for SBCL, OpenMCL, and SCL
1998         * Add *load-truename* to search path for clsql's
1999         compiled libraries.
2000
2001 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
2002         * Rework use of file types in .asd files
2003
2004 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
2005         * Add .asd definition files for ASDF users
2006
2007 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2008         * Restructure directories for Common Lisp Controller v3 compatibility
2009
2010 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2011         * Also change case of logical host in loader files
2012         * Rework handling of logical pathnames
2013         
2014 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
2015         * Change case of logical host
2016         
2017 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
2018         * clsql-base.system: Added base package that can be used without
2019         high-level SQL commands. Used for adding support for UncommonSQL.
2020         * *.system: Reworked logical pathnames to be more consistent with
2021         Common Lisp Controller.
2022         * debian/*: Completed initial Debian support
2023         
2024 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2025         * sql/classes.cl:
2026         * sql/transactions.cl:
2027         Added transaction support. Functions/macros added:
2028         with-transaction, commit-transaction, rollback-transaction,
2029         add-transaction-commit-hook, add-transaction-rollback-hook
2030
2031 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2032         * sql/sql.cl:
2033         * sql/pool.cl:
2034         * sql/functional.cl:
2035         Added pool support in connect/disconnect and with-database.
2036         Removed with-db-from-pool as with-database can now works with the connections pool
2037
2038 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2039         * sql/sql.cl:
2040         * sql/pool.cl:
2041         * sql/classes.cl:
2042         * sql/package.cl:
2043         Completed connection pool.
2044         Added with-db-from-pool macro.
2045         
2046 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2047         * Multiple files:
2048         Added initial support for connection pool
2049         * sql/transactions.cl
2050         Took transaction code from UncommonSQL and integrated
2051         into CLSQL code. See file for disclaimer about why this
2052         was added.
2053
2054 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2055         * interfaces/postgresql/postgresql-sql.cl:
2056         Fix keyword typo in database-read-large-object
2057         * interfaces/mysql/mysql-loader.cl
2058         Fix loading on Win32
2059         * test-suite/tester-clsql.cl
2060         Fix type coercion of double-float
2061         * doc/*
2062         Added debian docbook catalog, made it the default
2063         
2064 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
2065         * interface/postgresql/postgresql-api.cl:
2066         * interface/postgresql/postgresql-sql.cl:
2067         * sql/sql.cl:
2068         * sql/db-interface.cl:
2069         Added large objects support for postgresql.
2070
2071 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2072         * src/postgresql-socket/postgresql-socket-api.cl:
2073         Fixed find-foreign-function call, eliminated crypt warning
2074         * Makefiles:
2075         Multiple improvements
2076         * sql/usql.cl:
2077         Moved functionality from low-level interfaces to this file
2078         via generic functions
2079         * test-suite/tester.cl:
2080         Added test with acl-compat-tester, moved others to old-tests
2081         directory.
2082         
2083 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
2084         * src/usql.cl:
2085         Reinstated commented out sections
2086         * interfaces/postgresql/postgresql-loader.cl:
2087         * interfaces/mysql/mysql-loader.cl:
2088         Updated find-forieign-library support.
2089         * interfaces/postgresql-socket/postgresql-socket-package.cl:
2090         Fixed require form for Lispworks (Thanks Marc Battyani!)
2091         * interfaces/postgresql-socket/postgresql-socket-api.cl:
2092         Fixed eval of def-function for crypt library.
2093                 
2094 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2095         * Added interface to support USQL high-level rouines
2096         
2097 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2098         * Separated db-interface and conditions from sql/sql.cl
2099         * Improved foreign library loading testing
2100         * interfaces/postgresql/postgresql-api.cl
2101         Added PQisBusy function
2102         * interfaces/clsql-uffi/clsql-uffi.cl
2103         Fixed sign error for 64-bit processing
2104         
2105 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2106         * interfaces/postgresql-socket/postgresql-socket-api.cl:
2107         Fixes to read-double-from-socket. Added 64-bit integer support.
2108         * test-suite/xptest-clsql.cl
2109         Added testint for 64-bit integers
2110         * Additons to installation docs
2111         
2112 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2113         * interfaces/postgresql-socket/postgresql-socket-api.cl:
2114         Implemented direct socket reading for field type :double
2115         * Added usage information for :types to documentation
2116         * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
2117         atol, atof calls
2118         * interfaces/clsql-uffi: Created new directory. Split common
2119         interface routines that use UFFI into this package. Required
2120         especially to support direct reading of 64-bit integers into
2121         bignums and bypassing temporary strings.
2122         * test-clsql.cl: Updated to test postgresql-socket's
2123         read-double-from-socket function.
2124         * test-suite/xptest-clsql.cl
2125         Started work on test suite
2126
2127 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2128         * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
2129         mysql-fetch-field-direct Got :auto types working
2130         * interfaces/postgresql/postgresql-api.cl
2131         * interfaces/postgresql-socket/postgresql-socket-api.cl
2132         Added pgsql-field-types enum. Got :auto types working.
2133         * multiple-files
2134         Renamed :field-types to :types.
2135         
2136 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2137         * Added field-types parameter to query, database-query,
2138         database-query-result-set, map-query. Haven't added code
2139         to utilize field types, yet.
2140         * Changed postgresql-socket result set from cons to a structure
2141         * Updated test-clsql.cl to use automated testing with a config
2142         file
2143         * Changed return types of field accessors from cstring to
2144         (* :unsigned-char).  This prepares for being able to use specified
2145         type conversions when taking field data into lisp.
2146         * Added field-type processing for most interfaces. Not done yet.
2147         
2148 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
2149         * doc/ref.sgml: Updated MAP-QUERY example to use
2150         *read-default-float-format* (John Foderaro)
2151         * Extensive work to foreign library loaders and .system files to
2152         check for successful loading of foreign libraries.
2153         * Modified test-clsql.cl to allow more modularity and
2154         automated testing in future release.
2155         * mysql/mysql-sql.lisp: Added field types
2156         
2157 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
2158         * mysql/mysql-sql.lisp:
2159         - Added support for Allegro CL and Lispworks using UFFI layer
2160         - Changed database-connect to use mysql-real-connect. This way,
2161           can avoid using double (unwind-protect)
2162         - Changed database-connect to have MySQL library allocate space
2163           for MYSQL structure. This will make the code more robust in
2164           the event that MySQL library changes the size of the mysql-mysql
2165           structure.