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