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