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