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