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