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