207df0943a7f4ac06b4a134a2b0106d54e6608af
[clsql.git] / ChangeLog
1 10 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
2         * doc/Makefile, doc/catalog-darwin.xml: Apply
3         patch from Cyrus Harmon for building docs on Mac OS X
4         
5 09 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
6         * Version 3.0.4 Release
7         * multiple: Remove superfluous quotes in UFFI def-type
8         and def-foreign-type forms.
9         
10 07 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
11         * Version 3.0.3 Release
12         * db-postgresql-socket/postgresql-socket-api.lisp: Commit patch
13         from Tagore Smith to call force-output after sending authentication
14         * db-odbc/odbc-api.lisp: Move ODBC v3 conversons
15         * db-odbc/odbc-sql.lisp: Load mysql or postgresql package when connecting
16         to a database of that type so that functions that indicate capabilities of
17         database are available.
18         
19 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
20         * db-odbc/odbc-api.lisp: More conversions to ODBC v3
21         
22 02 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
23         * Version 3.0.2 Release
24         * TODO: Add note about ODBC on Windows
25         * db-odbc/odbc-loader.lisp: Add /winnt/system32/ to
26         search directories
27         * db-odbc/odbc-ff-interface.lisp: Change the return type 
28         of SQLSetEnvAttr to :short
29         
30 02 Sep 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
31         * examples/clsql-tutorial.lisp: added missing initarg for the COMPANYID
32         slot of the employee View Class definition [reported by Franz Deuzer]. 
33
34 01 Sep 2004 Kevin Rosenberg <kevin@rosenberg.net>
35         * Version 3.0.1 Release
36         * tests/test-init.lisp: Add second join class to employee-address
37         to test a class with two join slots.
38         * sql/oodml.lisp: Fix find-all function for a class with multiple
39         join slots
40         * TODO: Remove need to test/fix multiple join classes
41         
42 27 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
43         * db-mysql/Makefile, db-mysql/mysql-loader.lisp: accept patch
44         from Jon Buffington for file locations on Darwin.
45         
46 17 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
47         * sql/db-interface.lisp: Improve messages when functions
48         are passed a database object, but the method is not specialized
49         for that database type.
50         * sql/metaclasses.lisp: Fix inline declaration (reported by
51         Cyrus Harmon)
52         
53 14 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
54         * TODO: Add bug report about SQL generation with a table
55         containing two join slots.
56         * sql/oodml.lisp: Add optional size to VARCHAR type
57         
58 3 Aug 2004 Kevin Rosenberg <kevin@rosenberg.net>
59         * Version 3.0.0 Release
60         * sql/expressions.lisp: Change declaration that
61         caused error on openmcl
62         * db-aodbc/aodbc-sql.lisp: Fix storage location
63         of odbc connection. Specialize database-query since
64         dbi's :types keyword is different than generic-odbc's
65         :result-types keyword
66         * sql/db-interface.lisp: Add warnings for methods
67         not specialized by a db backends
68         * tests/test-fddl.lisp: Fix case of symbols to support
69         case-sensitive Allegro 
70         * db-oracle/oracle-sql.lisp: Rework errbuf in handle-oci-error
71         * tests/test-init.lisp: Note that odbc driver for postgresql
72         doesn't properly handle table ownership
73         * LATEST-TEST-RESULTS: update with version 3.0.0
74         
75 1 Aug 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
76         * sql/expressions.lisp: conditionalise escaping of backslash in 
77         generated SQL strings on backend. 
78         * tests/test-fdml.lisp: test for escaping of backslash. 
79         * sql/oodml.lisp: minor tidying in FIND-ALL. 
80
81 26 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
82         * NEWS: Initial 3.0 announcement draft
83         * README: Expand acknowledgements of incorporated projects
84         * CONTRIBUTORS: Further document Marcus Pearce contributions
85         
86 23 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
87         * sql/oodml.lisp: add DATABASE-OUTPUT-SQL-AS-TYPE method specialisation
88         to print floats with the exponent markers removed. 
89         * tests/test-oodml.lisp: add tests for updating records with floats. 
90
91 22 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
92         * db-oracle/oracle-sql.lisp: enable :OWNER :ALL in DATABASE-LIST-* for 
93         CommonSQL compatibility. 
94         * tests/test-init.lisp: skip test :FDDL/TABLE/6 on Oracle since 
95         this column constraint syntax is not supported. 
96         * tests/test-fddl.lisp: change column indexed in test :FDDL/INDEXES/2
97         from EMPLID to LAST_NAME since Oracle complains that EMPLID is already 
98         indexed. 
99
100 17 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
101         * doc/ref-fdml.xml: document CACHE-TABLE-QUERIES. 
102         * tests/test-fdml.xml: add test for CACHE-TABLE-QUERIES. 
103         * doc/ref-ooddl.xml: minor changes to syntax and examples entries 
104         for uniformity. 
105         * doc/ref-oodml.xml: add examples for OODML. 
106         * sql/oodml.lisp: ensure SELECT passes on its REFRESH argument 
107         to FIND-ALL. 
108         * sql/metaclasses.lisp: update docstrings. 
109         * tests/test-init.lisp: change :db-constraints for emplid to 
110         (:not-null :unique) as a temporary test for multiple column constraints 
111         in DEF-VIEW-CLASS. 
112         * tests/test-oodml.lisp: add tests for *DB-AUTO-SYNC* and 
113         return type of (SETF SLOT-VALUE-USING-CLASS). 
114         * TODO, doc/TODO: remove items done. 
115         * README: fix typo. 
116         
117 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
118         * sql/oodml.lisp: on Lispworks, use weak valued hash tables for 
119         object caching. 
120         * sql/expressions.lisp: Fix SQL generation for the symbol NIL. 
121
122 16 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
123         * sql/expressions.lisp: reactivate caching of generated SQL strings. 
124         Move methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY 
125         here from sql/fdml.lisp. Rationalise behaviour of SQL-OUTPUT, 
126         OUTPUT-SQL and DATABASE-OUTPUT-SQL. 
127         * sql/fdml.lisp: remove disabled method ADD-STORAGE-CLASS. Move 
128         methods for DATABASE-OUTPUT-SQL, OUTPUT-SQL and SQL-HASH-KEY to 
129         sql/expressions.lisp. 
130         * sql/ooddl.lisp: replace call to DATABASE-OUTPUT-SQL in 
131         DATABASE-PKEY-CONSTRAINT with call to SQL-OUTPUT. 
132         * sql/generics.lisp: add docstrings. 
133
134 15 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
135         * Version 2.11.16
136         * db-oracle/oracle-sql.lisp: Remove OpenMCL specific
137         code in favor of fixing UFFI with James Bielman's patch
138         
139 14 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
140         * Version 2.11.15
141         * db-oracle/oracle-sql.lisp: Apply patch for OpenMCL/OSX
142         from James Bielman
143         
144 14 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
145         * README, INSTALL: update URLs. Minor updates to descriptions. 
146         * tests/README: remove stuff about editing contexts. 
147
148 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
149         * db-oracle/oracle-objects.lisp: Change *default-varchar-length* to 
150         *default-string-length*
151         
152 12 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
153         * tests/test-syntax.lisp, tests/test-fdml.lisp: add tests for escaping 
154         of single quotes. 
155         * tests/test-fddl.lisp: add tests for column and table constraints 
156         in CREATE-TABLE. Add test for OWNER keyword parameter to 
157         LIST-TABLES (assuming same underlying machinery in other FDDL 
158         functions). 
159         * tests/test-init.lisp: restrict above test to postgresql and oracle. 
160         
161 12 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
162         * db-sqlite/sqlite-sql.lisp: Fix condition as reported by Aurelio 
163         Bignoli.
164
165 11 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
166         * sql/oodml.lisp, sql/package.lisp, doc/ref-ooddl.lisp, db-mysql/mysql-objects.lisp: Add tinyint type
167         
168 10 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
169         * Version 2.11.14
170         * doc/*.xml: documentation additionals and fixes so
171         that docbook passes xmllint.
172         
173 9 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
174         * Version 2.11.13
175         * sql/fdml.lisp: Apply patch from Kim Minh Kaplan 
176         to change escaping of single quotes. Mild optimizations
177         for escaped string output.
178         * doc/ref-ooddl.lisp: documentation additions
179         * doc/ref-oodml.lisp: Add purpose to functions
180         * TODO: Add need to test single quote escaping
181         
182 7 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
183         * doc/ref-ooddl.xml, doc-ref-oodml.xml: documentation additions
184         * sql/ooddl.lisp: Added SMALLINT type
185         * sql/generic-postgresql.lisp: Added INT2 as SMALLINT type
186         * db-mysql/mysql-objects.lisp: Added SMALLINT type
187         * sql/package.lisp: Export SMALLINT
188         * sql/expressions.lisp: Add MYSQL's UNSIGNED and ZEROFILL as
189         db-constraints
190         
191 6 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
192         * sql/expressions.lisp: add AUTO-INCREMENT and UNIQUE to the 
193         recognised column constraints for CREATE-TABLE and the :DB-CONSTRAINTS 
194         View Class slot option. 
195         * sql/ooddl.lisp: fix bug preventing the :DB-CONSTRAINTS View Class 
196         slot option accepting a list of constraints [reported by Travis Cross]. 
197         * doc/ref-fddl.xml: add some examples of specifying column and 
198         table constraints to the documentation for CREATE-TABLE. 
199         * TODO: add note about adding tests for table/column constraints. Add 
200         optimisation note about using cached attribute types in insert/update
201         operations. 
202         
203 3 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
204         * doc/appendix.xml: add notes about idiosyncrasies/unsupported 
205         features and so on the documentation for each backend. 
206         * doc/TODO: remove items done. 
207         * doc/ref-transaction.xml: add note in introduction about 
208         autocommit mode as a difference from CommonSQL. 
209         * doc/ref-syntax.xml: add notes about SQL syntax state functions 
210         being macros in CLSQL. Add note about SQL operators which are 
211         CLSQL extensions. 
212
213 2 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
214         * Version 2.11.12 released
215         * doc/ref-recording.xml: document SQL I/O recording. 
216         * doc/ref-prepared.xml: new file for documenting prepared statements. 
217         * doc/clsql.xml: comment out include for large object and CLSQL-SYS 
218         documentation. 
219         * doc/ref-conditions.xml: complete documentation of condition system. 
220         * doc/global-index.xml: add symbols from condition system and remove
221         those from LOB and prepared statement APIs. 
222         * doc/ref-fdml.xml: complete documentation of FDML.
223         * doc/glossary.xml: add View Class. 
224         * doc/TODO: remove items done. 
225         * sql/conditions.lisp: make SQL-CONDITION a parent of SQL-ERROR. 
226         * sql/package.lisp: remove FOR-EACH-ROW from exports list. Export 
227         additional slot accessors for condition classes. 
228
229 1 Jul 2004 Kevin Rosenberg <kevin@rosenberg.net>
230         * doc/ref-ooddl.lisp: Add documentation
231         * doc/ooddl.lisp: Move *DEFAULT-VARCHAR-LENGTH* from oodml.lisp
232         and rename to *DEFAULT-STRING-LENGTH*. Add docstring.
233         * doc/oodml.lisp: Rename references to new name of
234         *DEFAULT-STRING-LENGTH*
235
236 1 Jul 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
237         * doc/ref-transaction.xml: document transaction handling. 
238         * sql/transaction.lisp: ensure that COMMIT, ROLLBACK and 
239         START-TRANSACTION return NIL as per the CommonSQL spec. Modify 
240         ADD-TRANSACTION-{ROLLBACK|COMMIT}-HOOK such that a database is 
241         passed as a keyword argument defaulting to *DEFAULT-DATABASE*.
242         Added docstrings. 
243
244 30 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
245         * doc/ref-fdml.xml: document the FDML. 
246         * doc/ref-fddl.xml: move documentation for TRUNCATE-DATABASE here. 
247         * sql/ooddl.lisp: moved *default-varchar-length* to here from 
248         oodml.lisp and renamed to *default-string-length*
249         
250 23 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
251         * sql/oodml.lisp: Add keyword :transactions to def-view-from-class
252         to allow specifying transactionless table creation
253         * doc/ref-oodml.lisp: Add new keyword to signature of 
254         DEF-VIEW-FROM-CLASS     
255         
256 18 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
257         * Version 2.11.11
258         * sql/expressions.lisp: when removing duplicate table identifiers 
259         in the FROM clause of a query, check both table name and alias 
260         are equivalent. 
261         * sql/fdml.lisp: remove DESCRIBE-TABLE. 
262         * sql/db-interface.lisp: remove generics DESCRIBE-TABLE and 
263         DATABASE-DESCRIBE-TABLE. 
264         * sql/package.lisp: remove DESCRIBE-TABLE, DATABASE-DESCRIBE-TABLE 
265         and LIST-TABLE-INDEXES. 
266         * sql/generic-postgresql.lisp: add reader conditional #+nil for 
267         DATABASE-DESCRIBE-TABLE and comment about its uses for 
268         re-implementing LIST-ATTRIBUTE-TYPES with a single SQL query 
269         returning type info for all attributes. 
270         Fix DATABASE-SEQUENCE-LAST. 
271         * sql/fddl.lisp: remove LIST-TABLE-INDEXES and redefine 
272         LIST-INDEXES with additional keyword parameter :ON. 
273         * tests/test-fddl.lisp: replace LIST-TABLE-INDEXES in :fddl/index/3 
274         with LIST-INDEXES (with :ON parameter). 
275         * doc/global-index.xml: remove DESCRIBE-TABLE and LIST-TABLE-INDEXES. 
276         * doc/ref-connect.xml: minor tidying. 
277         * doc/ref-fddl.xml: document the FDDL. 
278         * doc/TODO: removed items done. Moved note about transaction handling 
279         from TODO to here. 
280         * TODO: move note about transaction handling to doc/TODO. Added 
281         optimization note about LIST-ATTRIBUTE-TYPES and LIST-INDEXES. 
282         
283 13 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
284         * Version 2.11.10
285         * sql/syntax.lisp: updated docstrings. 
286         * sql/package.lisp: exported DATABASE-NAME-FROM-SPEC from CLSQL 
287         package.
288         * sql/database.lisp: add docstrings for CREATE-DATABASE, 
289         DESTROY-DATABASE, TRUNCATE-DATABASE and LIST-DATABASES. Replace 
290         CLSQL-GENERIC-ERROR signalled in RECONNECT with SQL-CONNECTION-ERROR. 
291         * doc/ref-syntax.xml, doc/global-index.xml: minor tidying. 
292         * doc/ref-connect.xml: document connection/initialisation. 
293         * doc/ref-fdml.xml: move TRUNCATE-DATABASE reference entry here. 
294         * doc/TODO: remove items done. 
295         * Makefile: add db-oracle to to SUBDIRS. 
296
297 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
298         * sql/oodml.lisp: Add new serialization functions:
299         WRITE-INSTANCE-TO-STREAM and READ-INSTANCE-FROM-STREAM
300         * sql/expressions.lisp: Avoid duplicate FROM names when selecting
301         from a table that has more than one primary index.
302         * sql/conditions.lisp: Fix printing of closed-database error
303         
304 13 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
305         * Version 2.11.9
306         * sql/conditions.lisp: Set initial slot value for message in SQL-WARNING
307         * sql/transactions.lisp: Correctly set slots of SQL-WARNING
308
309 12 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk>
310         * sql/package.lisp: export DATABASE-TYPE from CLSQL and subclasses 
311         of SQL-EXPRESSION from CLSQL-SYS. 
312         * sql/syntax.lisp: make error signalled in SQL-OPERATION an 
313         SQL-USER-ERROR. Make SQL-OPERATOR return just one value. 
314         * doc/Makefile: added Mandrake linux. 
315         * doc/catalog-redhat.xml, doc/catalog-mandrake.xml: new files. 
316         * doc/appendix.xml: fixed little typo (adsf). 
317         * doc/glossary.xml: removed closed-database and note about 
318         sql-expression, added some entries. 
319         * doc/ref-syntax.xml: documented the symbolic SQL syntax. 
320
321 10 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
322         * Version 2.11.8
323         * db-mysql/mysql-loader.lisp: Remove load of unnecessary zlib library
324         * multiple: Add generalized-boolean type as requested by
325         Edi Weitz
326         * TODO: Added need for test of generalized-boolean
327         
328 9 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
329         * Version 2.11.7 released
330         * uffi/clsql-uffi-loader.lisp: Apply patch from Edi Weitz
331         for loading with clc-register-user-package. Remove personal
332         directory from path lisp.
333         * db-mysql/mysql-loader.lisp: Similar changes
334         
335 8 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
336         * Version 2.11.6 released
337         * sql/oodml.lisp: Commit patch from Edi Weitz
338         to fix symbol writing/reading
339         * TODO: Add need for symbol slot test
340         
341 7 Jun 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
342         * sql/package.lisp: remove duplicate export of 
343         *CACHE-TABLE-QUERIES-DEFAULT*. 
344         * doc/ref-*.xml, doc/global-index.xml: new files documenting 
345         the CommonSQL compatible api. 
346         * tests/test-fdml.lisp: modified the test :fdml/transaction/3 to 
347         reflect changes in return values of WITH-TRANSACTION. 
348
349 04 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
350         * tests/README: Fix filename [reported by Bill Clementson]
351         * sql/transactions.lisp: Apply return value patch from
352         Edi Weitz for WITH-TRANSACTION
353         * tests/README: Remove ptester package requirement (as noted
354         by Bill Clementson)
355         
356 03 Jun 2004 Kevin Rosenberg <kevin@rosenberg.net>
357         * Version 2.11.5 released
358         * examples/clsql-tutorial.lisp: Remove obsolete :nulls-ok attribute,
359         Select connection-spec based on connection type. Bugs reported by
360         Bill Clementson.
361         * uffi/uffi.dll, uffi/uffi.lib: Recompile with Visual Studio 2003
362         * db-mysql/mysql-loader.lisp: Update check for zlibwapi library
363         name on Windows, add \bin\ directory to search path
364         
365 31 May 2004 Marcus Pearce <m.t.pearce@city.ac.uk> 
366         * db-odbc/odbc-sql.lisp: DB-TYPE replaced with DATABASE-TYPE in 
367         DATABASE-CONNECT. 
368         * sql/operations.lisp: substr now generates SUBSTR for use on 
369         Oracle; added a new operator SUBSTRING for use elsewhere. minus 
370         now generates MINUS for use on Oracle. Nvl signals an error if 
371         not called with exactly 2 arguments. Add concat function for use 
372         instead of the || operator on MySQL and Oracle. 
373         * sql/syntax.lisp: changed internal symbol for the || operator to 
374         CONCAT-OP. 
375         * sql/expressions.lisp: removed redundant and unused functions 
376         GENERATE-SQL (cf. SQL-OUTPUT) and DATABASE-CONSTRAINT-DESCRIPTION
377         (cf. MAKE-CONSTRAINTS-DESCRIPTION). 
378         * sql/generics.lisp: removed generic function for 
379         DATABASE-CONSTRAINT-DESCRIPTION (see above). 
380         * tests/test-syntax.lisp: modified/added tests according to changes
381         in sql/operations.lisp. 
382         * tests/test-fdml.lisp: changed SUBSTR to SUBSTRING in test 
383         :fdml/select/21.  
384         * sql/package.lisp: added the operators SQL-SUBSTRING, SQL-CONCAT-OP 
385         and SQL-USERENV to the shared exports list. Removed 
386         ROLLBACK-TRANSACTION, COMMIT-TRANSACTION, DATABASE-START-TRANSACTION, 
387         DATABASE-ABORT-TRANSACTION, DATABASE-COMMIT-TRANSACTION, 
388         TRANSACTION-LEVEL, TRANSACTION,  RECORD-SQL-COMMAND and 
389         RECORD-SQL-RESULT from shared exports list. 
390         
391 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
392         * db-postgresql/postgresl-sql.lisp: Avoid computing
393         result-types lisp when nil result-types. Return only
394         one value when field-types nil.
395         * db-mysql/mysql-sql.lisp: Simple queries now
396         working with prepared statements.
397         
398 30 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
399         * Version 2.11.4: MySQL 4.1 now passes all tests
400         * sql/package.lisp: Add API for prepared statments.
401         * sql/fdml.lisp: Change implicit flatp processing
402         for string map-query for greater CommonSQL conformance.
403         Add high-high API for prepared statements.
404         * tests/test-basic.lisp: Add test for map-query and
405         single argument.
406         * sql/transactions.lisp: Change name/semantics of
407         autocommit to set-autocommit.
408         * sql/generic-postgresql.lisp: Add support for
409         prepared statements. 
410         * tests/test-internal.lisp: New file
411         * sql/odbc-api.lisp: Update to using ODBC V3 protocol
412         * clsql-mysql.asd, clsql-uffi.asd: Remove check and Common Lisp
413         Controller invocation.
414         * db-mysql/mysql-api.lisp: Add support for MySQL 4.1 field structure
415         * sql/expressions.lisp: Avoid emitting double parenthesis when a
416         function contains a subselect. 
417         
418 27 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
419         * Version 2.11.3
420         * sql/ooddl.lisp: Commit patch from Edi Weitz fixing return
421         type (setf slot-value-using-class)
422         * TODO: add not that need a test case for the above fix
423         * db-sqlite: Remove clisp support since clisp can not run CLSQL
424         with its MOP usage
425         * db-oracle/oracle-sql.lisp: By default, use OCIEnvCreate as 
426         introduced in Oracle8. Leave older code selectable by a reader macro
427         for Oracle7 and prior. Avoid use of OCIServerAttach since CLSQL
428         uses OCILogon and does not the more complex session management.
429         
430 26 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
431         * sql/oodml.lisp: Commit universal-time typo patch from Edi Weitz
432         * test/test-init.lisp: Add universal-time slot to person.
433         * test/test-fddl.lisp: Add tests of universal-time slot
434         * test/test-ooddl.lisp: Test universal-time slot in an object
435         * TODO: Remove need for universal-time test     
436         * debian/rules, debian/control: Add cl-sql-oracle binary package
437         * doc/appendix.xml: Add Oracle backend information
438         * db-oracle/oracle-objects.lisp: Add database-get-type-specifier for
439         universal-time. Convert BIGINT CLSQL type to CHAR SQL type
440         * db-mysql/mysql-sql.lisp: Fix condition name to sql-connection-error
441         * doc/ref-clsql.xml: Renamed from ref_clsql.xml. Change the documentation
442         for map-query to reflect changed in arguments to be CommonSQL compatible.
443         Updated old clsql conditions to new CommonSQL compatible conditions.
444         
445 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
446         * sql/oodml.lisp: (string n) now produces a CHAR field. Add new VARCHAR
447         type. Added *default-varchar-length* rather than previous hard-coded
448         varchar length. Remove 'simple-string and 'simple-base-string since they
449         are subtypes of 'string.
450         * db-oracle/oracle-sql.lisp: Use *default-varchar-length* rather than
451         local hard-coded value.
452         * sql/metaclasses.lisp: Convert specified type VARCHAR and (VARCHAR n) to Lisp
453         type string. Convert specified-type (CHAR n) to string. Convert specified-type
454         CHAR to lisp type character.
455         * sql/generic-postgresql.lisp: (string n) => (CHAR n)
456         * sql/operations.lisp: Add userenv
457         * doc/TODO: Add AUTOCOMMIT. Remove need for large table and bigint
458         slot tests
459         * sql/oracle-sql.lisp: Add 64-bit bigint direct conversion
460         * uffi/clsql-uffi.lisp: Handle signed 64-bit integers
461         * test/test-init.lisp: Add large table with bigint slot
462         
463 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
464         * Version 2.11.1 released: Much simpler Oracle client library loading.
465         Now uses ORACLE_HOME environmental variable as well as tests default
466         path for Oracle Instant Client. 
467         
468 25 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
469         * Version 2.11.0 released: Full Oracle support. All tests pass
470         * db-oracle/oracle-sql.lisp: Add declaration so that SBCL runs efficiently.
471         * tests/test-init.lisp: capitalize odbc backend name in banner
472         * CONTRIBUTORS: Add note about Marcus' excellent work
473         * sql/oodml.lisp: Removed old stub function     
474         * clsql.asd: Use module names in current package rather than keyword package
475         * db-oracle/oracle-sql.lisp: Don't trim trailing spaces. Prevent interrupts
476         in setting sequence position. Make autocommits more efficient.
477         * tests/test-init.lisp: Skip 2 tests on Oracle which have unsupported syntax 
478         * sql/oodml.lisp: Get rid of undocumented raw-string type. CommonSQL
479         strings are raw (non-trimmed trailing whitespace). Add database-get-type-specifier
480         and read-sql-value for NUMBER and CHAR.
481         * sql/base-classes.lisp: Add autocommit slot
482         * sql/transaction.lisp: Added autocommit processing, mild cleaning.
483         * doc/intro.xml: Add Oracle
484         
485 24 May 2004: Marcus Pearce (m.t.pearce@city.ac.uk) 
486         * db-postgresql-socket/postgresql-socket-sql.lisp: replace 
487         CLSQL-SIMPLE-WARNING with SQL-WARNING. 
488         * db-sqlite/sqlite-sql.lisp: replace CLSQL-SIMPLE-WARNING with 
489         SQL-WARNING. 
490         * db-aodbc/aodbc-sql.lisp: replace CLSQL-ERROR with SQL-ERROR. 
491         * clsql.asd: reworked module structure in package definition and 
492         file names to better reflect component functionality. 
493         * sql/package.lisp: added SQL-FATAL-ERROR and SQL-TIMEOUT-ERROR to 
494         exports list. Removed duplicate and obsolete exports. Exported 
495         remaining SQL operations: SQL-SOME, SQL-<>, SQL-BETWEEN, SQL-DISTINCT, 
496         SQL-NVL and SQL-FUNCTION. Organised exports by functionality/file and 
497         according to whether they are specified by CommonSQL or CLSQL 
498         extensions. 
499         * sql/transaction.lisp: replace CLSQL-SIMPLE-WARNING with 
500         SQL-WARNING. 
501         * sql/generics.lisp: moved generics for QUERY and EXECUTE-COMMAND 
502         here from basic-sql.lisp. 
503         * sql/expressions.lisp: NEW FILE: renamed from classes.lisp (deleted). 
504         * sql/fddl.lisp: NEW FILE: renamed from table.lisp (deleted). 
505         * sql/fdml.lisp: NEW FILE: merger of basic-sql.lisp and sql.lisp
506         (both deleted). 
507         * sql/ooddl.lisp: NEW FILE: ooddl from objects.lisp (deleted). 
508         * sql/oodml.lisp: NEW FILE: oodml from objects.lisp (deleted). 
509         
510 23 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
511         * Version 2.10.22 released
512         * sql/kmr-mop.lisp, sql/objects.lisp: Since SBCL is the only implementation that
513         has reversed class slots, change the default for ordered-class-slots so that slots
514         are now in the same order an in the def-view-class.
515         * sql/sql.lisp: Honor case of string table identifier to INSERT-RECORDS
516         * test/test-fddl.lisp: Add two tests for mixed case names
517         * db-oracle/oracle-sql.lisp: Add missing database qualifier. Return NUMBER (double)
518         for computed fields, this will require some adjustment to the test suite which
519         in many cases expects integers.
520         * test/test-fdml.lisp: Accomodate that Oracle returns doubles for computed columns
521         
522 22 May 2004 Kevin Rosenberg <kevin@rosenberg.net>
523         * Version 2.10.21 released
524         * sql/sequences.lisp: Move generic sequence functions here from db-sqlite,
525         db-odbc, and db-aodbc.
526         * sql/*.lisp: Add db-type parameter to generic functions READ-SQL-VALUE,
527         DATABASE-GET-TYPE-SPECIFIER, and OUTPUT-SQL-VALUE-AS-TYPE. Update methods to use these.
528         * sql/generic-postgresql.lisp, sql/generic-odbc.lisp: New files
529         * db-odbc/odbc-sql.lisp, db-aodbc/aodbc-sql.lisp: Move common code to 
530         sql/generic-odbc.lisp
531         * db-postgresql/postgresql-sql.lisp, db-postgresql-socket/postgresql-socket-sql.lisp: 
532         Move common code to  sql/generic-postgresql.lisp
533         * sql/classes.lisp: honor case of string tables when outputting queries 
534         * sql/objects.lisp: Add database type to default database-get-type-specifier method
535         * sql/sql.lisp:  Add database type to default database-abort-transaction method
536         * db-mysql/mysql-objects.lisp: New file
537         * sql/objects.lisp: Move MySQL specific code to mysql-objects.lisp
538         * sql/utils.lisp: Add GETENV function which will be used to get ORACLE_HOME
539         from environment
540         * test/test-fdml.lisp: String table names are now case sensitive, so convert to
541         default db case for FDML/SELECT/25
542
543 22 May 2004 Kevin Rosenberg
544         * Version 2.10.20 released: Oracle backend now fails 6 out of 200 tests
545         * TODO: Added 2 variances from CommonSQL. Add tests for owner phrases
546         and string identifiers with non-default case
547         * sql/table.lisp: Don't convert string table name to a symbol.
548         * sql/classes.lisp: Honor case of string identifiers
549         * sql/sql.lisp: Ensure recyclebin is purged for Oracle in 
550         TRUNCATE-DATABASE
551         * db-oracle/oracle-sql.lisp: Add sequence functions, fix use of
552         of owner phrases. Obtain server and client versions.
553         * db-oracle/oracle-objects.lisp: Fix type specifiers
554         * tests/test-fddl.lisp: Allow :varchar2 and :number as data types
555         * tests/test-init.lisp: Properly get username from Oracle connection-spec
556         
557 22 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
558         * sql/generics.lisp: reworked docstrings. Remove generics for 
559         ADD-TO-RELATION and REMOVE-FROM-RELATION. 
560         * sql/objects.lisp: reworked docstrings. Changed UPDATE-OBJECT-JOINS 
561         to UPDATE-OBJECTS-JOINS for CommonSQL compatibility. 
562         * sql/package.lisp: Changed UPDATE-OBJECT-JOINS to UPDATE-OBJECTS-JOINS 
563         for CommonSQL compatibility. Remove ADD-TO-RELATION and 
564         REMOVE-FROM-RELATION. 
565         * tests/test-oodml.lisp: Changed UPDATE-OBJECT-JOINS to 
566         UPDATE-OBJECTS-JOINS for CommonSQL compatibility. 
567         * doc/TODO: added notes about extra slot options to DEF-VIEW-CLASS. 
568         * sql/conditions.lisp: add documentation for conditions. Add 
569         SQL-TIMEOUT-ERROR and SQL-FATAL-ERROR for CommonSQL compatibility. 
570
571 21 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
572         * sql/basic-sql.lisp: reworked docstrings. 
573         * sql/transactions.lisp: reworked docstrings. 
574         * sql/sql.lisp: reworked docstrings. 
575         * sql/initialize.lisp: reworked docstrings. INITIALIZE-DATABASE-TYPE 
576         sets *DEFAULT-DATABASE-TYPE* for CommonSQL compatibility. 
577         * sql/database.lisp: reworked docstrings. 
578         * doc/TODO: added notes about START-TRANSACTION and IN-TRANSACTION-P 
579         and FDML extensions and database extensions. 
580
581 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
582         * db-oracle/oracle-sql: Use clsql-specific error conditions. Use owner keyword.
583         * db-oracle/make9.sh: add makefile for building with Oracle 9 client
584         libraries
585         * sql/table.lisp: Add logic for dealing with Oracle 10g vs. previous
586         Oracle versions with the PURGE option required for drop table. This needs
587         to be converted to a generic function and moved to db-oracle/oracle-sql.lisp
588
589 20 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
590         * sql/classes.lisp: remove unused PARAMS slot in SQL-IDENT-ATTRIBUTE. 
591         * sql/syntax.lisp: remove unused PARAMS keyword arg to SQL-EXPRESSION. 
592         * sql/table.lisp: reworked docstrings. 
593         * sql/objects.lisp: moved *default-update-objects-max-len* here from 
594         table.lisp. 
595         * doc/TODO: notes about :if-does-not-exist arg to DROP-TABLE, 
596         DROP-VIEW and DROP-INDEX and the use of the :transactions and 
597         :constraints keyword args to CREATE-TABLE. 
598         * sql/classes.lisp: the DESCRIPTION argument to CREATE-TABLE is now 
599         CommonSQL compatible with respect to column constraints. 
600
601 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
602         * sql/oracle-sql.lisp: Now compiles and runs on SBCL.
603         Requires UFFI 1.5.0 or higher
604         
605 20 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
606         * Version 2.10.19
607         * sql/conditions.lisp: Fix cerror
608         
609 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
610         * Version 2.10.18 released: New condition hierarchy to be compatible
611         with CommonSQL -- not backward compatible with previous CLSQL.
612         * sql/db-interface.lisp: Add more default methods
613         * sql/objects.lisp: Add explicit table name to order-by parameters
614         in find-all when only one table to avoid selecting a duplicate row.
615         Fix error in FIND-ALL when using :order-by such as (([foo] :asc))
616         as previous logic was adding two fields (foo asc) to SELECT query.
617         Make :result-types :auto be the default for object selections.
618         Properly handle caching key when using multiple order-by with asc/desc
619         directions.
620         * db-oracle/*.lisp: Much improvements, now passes 90% of test suite
621         
622 19 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
623         * sql/recording.lisp: reworked docstrings. 
624         * sql/syntax.lisp: reworked docstrings. 
625         * doc/TODO: added notes about extensions to SQL-RECORDING-P and the 
626         SQL syntax state functions being macros. 
627
628 19 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
629         * sql/package.lisp: Export initialize-database-type and
630         *initialize-database-types* from CLSQL package.
631         * sql/conditions.lisp: Add new CommonSQL compatible conditions,
632         remove old CLSQL conditions.
633         * sql/loop-extensions.lisp: Make errors of type sql-user-error
634         * */*.lisp: Convert to from old to new conditions
635         
636 18 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
637         * sql/table.lisp: Add PURGE to drop command for oracle 10g backend.
638         To handle this difference, will need to add a new database-drop-table
639         generic function.
640         * db-oracle/oracle-sql.lisp: Move server-version and
641         major-version-number to database object to allow multiple connections
642         to Oracle servers of different versions.
643         
644 18 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
645         * TODO: moved notes about backends to doc/TODO. 
646         * doc/TODO: added notes about backends and select extensions. 
647         * sql/base-classes.lisp: remove obsolete schema slot in database 
648         class. 
649         
650 16 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
651         * db-oracle/oracle-api: Add OCIServerVersion
652         * db-oracle/oracle-sql: Query and store server version on connect
653         * sql/db-interface.lisp: Add new db-type-has-bigint? generic
654         function to handle OCI's lack of bigint support
655         * test/test-basic.lisp: Separate bigint testing
656         * test/test-utils.lisp: Add oracle to specs and list of backends
657         * doc/TODO: New file
658         * test/test-fdml.lisp: Added FDML/SELECT/34 to test
659         run-time instantiation of variables in reader macros.
660         * TODO: Remove item already complete. Add note about
661         condition variances
662         
663 16 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
664         * sql/syntax.lisp: added condition to the reader macro to treat [*] 
665         as a column identifier (rather than an operation) for CommonSQL 
666         compatibility. 
667         * tests/test-fdml.lisp: add tests for ORDER-BY and SET-OPERATION 
668         keword args to SELECT, [*] as column identifier, new MAP-QUERY 
669         behaviour and the ANY and ALL operators in subqueries. 
670         * tests/test-init.lisp: add set-operation and subquery tests to 
671         appropriate skip lists. 
672         * sql/objects.lisp: remove redundant and non CommonSQL compatible 
673         ORDER-BY-DESCENDING keyword argument for SELECT. 
674         * sql/classes.lisp: remove redundant and non CommonSQL compatible 
675         ORDER-BY-DESCENDING keyword argument for SELECT. 
676         * tests/test-oodml.lisp: add test for ORDER-BY keyword to SELECT 
677         with object queries. 
678
679 15 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
680         * sql/db-interface.lisp: Add new db-type-has-union? 
681         since Mysql 3.23 does not support unions.
682         * sql/test-init.lisp: Don't try union tests on database
683         backends which do not support it.
684         * db-oracle/*.lisp: initial port to UFFI
685         * sql/objects.lisp: implement UPDATE-OBJECT-JOINS,
686         implement REFRESH for SELECT.
687         * tests/test-oodml.lisp: Add tests for deferred retrieval,
688         caching, refresh, and update-object-joins
689         * tests/test-init.lisp: Add deferred-employee-address class
690         
691 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
692         * sql/operations.lisp: make MINUS operator a synonym for EXCEPT. Add 
693         COALESCE operator and make NVL a synonym for this. Make ANY, SOME, 
694         ALL and EXISTS generate function expressions so they output the 
695         correct SQL. 
696         * sql/classes.lisp: SELECT now generates appropriate SQL when 
697         passed the SET-OPERATION and ALL keyword arguments. 
698         * sql/classes.lisp: the ORDER-BY keyword argument to SELECT now 
699         accepts ordering constraints as pairs of the form (column direction) 
700         where direction may be :ASC or :DESC. 
701         * tests/test-syntax.lisp: added tests for MINUS and COALESCE/NVL. 
702         Correct tests for ANY, SOME, ALL and EXISTS. 
703         * tests/test-fdml.lisp: added test for COALESCE. 
704         * sql/sql.lisp: MAP-QUERY now applies FUNCTION to QUERY-EXPRESSION 
705         using funcall unless QUERY-EXPRESSION returns one column and its 
706         FLATP slot is not nil in which case apply is used. 
707         * tests/test-basic.lisp: modified calls to MAP-QUERY to reflect the 
708         changes. 
709         * TODO: remove items done. 
710         * db-postgresql/postgresql-sql.lisp: no need to reverse results in 
711         DATABASE-LIST-ATTRIBUTES. 
712         * db-postgresql-socket/postgresql-socket-sql.lisp: no need to reverse
713         results in DATABASE-LIST-ATTRIBUTES.    
714         
715 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
716         * sql/classes.lisp: SELECT now accepts table identifiers as strings 
717         for CommonSQL compliance. Add support for qualified sql identifiers 
718         with aliased table names. 
719         * tests/test-fdml.lisp: added tests for table identifiers as strings 
720         in SELECT and for aliased definitions. 
721         * tests/test-syntax.lisp: added tests for alias definitions. 
722         
723 15 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
724         * sql/sql.lisp: PRINT-QUERY now calls QUERY with result-types and 
725         field-names set to nil. 
726         * sql/sql.lisp: PRINT-QUERY now computes column sizes correctly 
727         with null attribute values. 
728         * sql/operations.lisp: modify SQL concatenation operator to accept 
729         unescaped || symbol.  
730         * sql/syntax.lisp: modify sql reader macro function to accept 
731         unescaped sql concatenation operator. 
732         * tests/test-fdml.lisp: unescape sql concatenation operator. 
733         * tests/test-syntax.lisp: unescape sql concatenation operator. 
734         * TODO: remove items done. Add notes about SQLITE/MYSQL backends. 
735         Note to add test for universal-time. Note about difference from 
736         CommonSQL in transaction handling. 
737
738 13 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
739         * tests/test-init.lisp: Add deferred-employee-address
740         class
741         * tests/test-oodml.lisp: Add deferred retrieval testgs
742         
743 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
744         * Version 2.10.17
745         * LATEST-TEST-RESULTS: Run on all platforms, add AMD64
746         * sql/sql.lisp: Add FOR-EACH-ROW macro from clsql-classic/sql.lisp
747         * db-sqlite/sqlite-uffi-api.lisp: Fix row-pointer type
748         * *: Fix minor style warnings
749         * clsql-classic: Remove system and subdirectory
750         * clsql-base: Remove system and subdirectory and
751         fold into clsql system
752         * doc/intro.xml: Remove reference to old clsql-base. Add x86_64
753         as supported platform.
754         
755 12 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
756         * Version 2.10.16: CLSQL now fully supports AllegroCL AMD64
757         * db-odbc/odbc-api.lisp: work around return-type bug [spr28889] in
758         Allegro 7.0beta AMD64
759         * db-odbc/*.lisp: Add a layer of indirection to foreign-type
760         of ODBC longs since this type can vary on 64-bit platforms depending
761         upon the compilation options of unixODBC.
762         * db-mysql/mysql-api.lisp: Fix int vs. long slots in foreign
763         structures found by testing with AllegroCL 7.0b AMD64.
764         * db-*/*-loader.lisp: Load 64-bit libraries on 64-bit platorms
765         * sql/objects.lisp: Simple implementation of UPDATE-OBJECT-JOINS.
766         Initial caching support for SELECT
767         * tests/test-oodml.lisp: Avoid using cache when testing select.
768         * sql/kmr-mop.lisp: Explicitly check slot order and
769         store as a cl:*feature*
770         * sql/recording.lisp: Remove additional types to
771         increase CommonSQL conformance.
772         * tests/test-init.lisp: Change a :column attribute
773         to test symbols as value
774         * sql/relations.lisp: Remove functions since they don't support
775         many to many relationships.
776         * examples/clsql-tutorial.lisp, doc/csql.lisp: Remove use
777         of add-to-relations function and replace with explicit field settings.
778         * base/classes.lisp: Remove obsolute query-stream. Add record-caches slot.
779         
780 9 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
781         * Version 2.10.15
782         * LATEST-TEST-RESULTS: results with current version
783         * sql/kmr-mop.lisp: Make CMUCL reader macros specific for cmu18
784         since cmu19 has opposite order of class slots.
785         * sql/objects.lisp: Fix (setf slot-value-using-class) for Lispworks
786         * tests/test-fdml.lisp: Renumber SELECT tests to avoid overwriting
787         a previous test
788         * tests/test-init.lisp: Check test-database-underlying-type for
789         ODBC/MySQL tests
790         
791 8 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
792         * sql/operations.lisp: complete remaining operations for the sql 
793         syntax: SUBSTR, SOME, ORDER-BY, GROUP-BY, NULL, DISTINCT, EXCEPT, 
794         UNION, INTERSECT, BETWEEN. 
795         * sql/classes.lisp: add new classes: SQL-BETWEEN-EXPRESSION, 
796         SQL-QUERY-MODIFIER-EXPRESSION and SQL-SET-EXPRESSION. 
797         * tests/test-syntax.lisp: add tests for new operations. 
798         * tests/test-fdml.lisp: add tests for queries based on new operations. 
799         * tests/test-init.lisp: add select/20 to tests skipped for sqlite and 
800         select/20, query/5, query/7 and query/8 to tests skipped by mysql. 
801         * TODO: removed entries done. 
802
803 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
804         * tests/benchmarks.lisp: Add immediate vs. deferred
805         join test.
806         
807 8 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
808         * Version 2.10.13: Now works on openmcl 0.14.2 
809         * sql/objects.lisp: Add :retrieval :immediate for
810         object selections
811         * tests/test-init.lisp: Add non-index fields for testing 
812         join class employee-addresss
813         * test/test-oodml.lisp: Add tests for retrieval immediate
814         * sql/metaclasses.lisp: Handle differences in direct-slot-definition 
815         values which are now listifed by openmcl 14.2.
816         * sql/objects.lisp: more framework for supporing immediate retrieval 
817
818 7 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
819         * docs/intro.xml: Upload location of a README file
820         * sql/metaclass.lisp: Work-around openmcl's CHANGE-CLASS
821         changing the type-specifier. Use a lisp type of (OR NULL FOO)
822         for a specified-type of FOO unless :db-constraints :not-null.
823         No need to specialize finalize-inheritance for openmcl.
824         * tests/test-*.lisp: Rename fields so that joins occur on
825         fields with different names. This ensures that join code is
826         selecting the proper name.
827         * test/test-init.lisp: Add :base-table for employee-address
828         view class for testing.
829         * sql/objects.lisp: Use view-table rather than name of table
830         in a number of places to fix errors noted with using :base-table.
831
832 6 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
833         * sql/objects.lisp: replace *update-records-on-make-instance* with 
834         *db-auto-sync* which also controls both automatic creation of 
835         new records on creation of new instance and updating of record 
836         fields on setting of instance slots (as suggested by Edi Weitz). 
837         * tests/test-init.lisp: replace *update-records-on-make-instance* 
838         with *db-auto-sync*. 
839         * sql/package.lisp: replace *update-records-on-make-instance* 
840         with *db-auto-sync*. 
841         * TODO: replace *update-records-on-make-instance* with *db-auto-sync*. 
842         * sql/objects.lisp: remove redundant rebindings of *db-initializing* 
843         and *default-database* in FIND-ALL. 
844         * sql/package.lisp: import time functions from CLSQL-BASE. 
845         * tests/test-time.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
846         * tests/test-fdml.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
847         * tests/test-init.lisp: replace CLSQl-BASE package qualifier with CLSQL. 
848         * tests/test-ooddl.lisp: replace CLSQl-BASE package qualifier with 
849         CLSQL. 
850
851 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
852         * sql/classes.lisp: Add SQL-OBJECT-QUERY type. Have [select 'class]
853         now return a sql-object-query type rather than directly performing a query.
854         This improves CommonSQL conformance.
855         * sql/sql.lisp: Add new QUERY method for SQL-OBJECT-QUERY. Move
856         from basic/basic-sql.lisp the DO-QUERY and MAP-QUERY since they now
857         depend on sql-object-query-type.
858         * sql/loop-extensions.lisp: Move from base package
859         * classic/package.lisp: remove references to map-query and do-query
860
861 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
862         * TODO: New section on optimizations, especially optimizing JOINs.
863         * sql/objects.lisp: Have :target-slot return of list of lists rather
864         than a list of cons pairs to be conformant with CommonSQL.
865         Make :target-slot much more efficient by using a SQL inner join
866         statement and just requiring one SQL query. Add :retrieval :deferrred
867         to target-slot joins. Add placeholder for update-objects-join.
868         * sql/classes.lisp: Add :inner-join and :on slots to sql-query class
869         and process them for query output-sql. 
870
871 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
872         * Version 2.10.11
873         * base/basic-sql.lisp: Avoid multiple evaluation
874         of query-expression in DO-QUERY
875         * sql/objects.lisp: Make SELECT a normal function.
876         SELECT now accepts type-modified database identifiers, such as
877         [foo :string] which means that the values in column foo are returned 
878         as Lisp strings. Add new *update-records-on-make-instance* special
879         variable controlling automatic creation of new instances. Add missing
880         RESULT-TYPES keyword to FIND-ALL. Add :target-slot support.
881         * sql/packages.lisp: Export *update-records-on-make-instance* 
882         * test/test-oodml.lisp: Add tests for :target-slot and many-to-many
883         selections.
884         * test/test-fdml.lisp: Add tests for type-modified
885         database identifiers.
886         * test/test-init.lisp: Stop using add-relation since implementing
887         many-to-many joins. Use *update-records-on-make-instance* 
888         to automatically store records on instance creation. Add many-to-many
889         employee-address view-class.
890         
891 4 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
892         * Version 2.10.10
893         * base/loop.lisp: Add object iteration. Use :result-type
894         :auto for result-set. Remove 
895         duplicate (and non-correct) code for non-list variables by
896         simply making an atom variable into a list. 
897         * sql/package.lisp: Remove unnecessary clsql-sys package
898         and replace it with clsql.
899         * sql/metaclasses.lisp: Properly store specified-type from
900         direct-slot-definition and then store translated type in
901         effective-slot-definition
902         * sql/classes.lisp: Don't output type in sql-output
903         for SQL-IDENT-ATTRIBUTE. This is in preparation for supporting
904         [foo :integer] as fields in SELECT.
905         * sql/query.lisp: Set default for :result-types to :auto in
906         FDML QUERY.
907         * sql/objects.lisp: Use specified-type when invocating 
908         database-get-type-specifier. def-view-class macro now returns
909         the class instance.
910         * base/basic-sql.lisp: Make :AUTO the default value for
911         :RESULT-TYPES for MAP-QUERY and DO-QUERY.
912         * sql/objects.lisp: Add bigint type
913         * test/tests-basic.lisp: Add tests for :result-types for
914         MAP-QUERY and DO-QUERY
915         * test/test-fdml.lisp: Add test for result-types in LOOP
916         and also using single symbol rather than a list for variables.
917         Add test that default :result-types is auto for FDML QUERY.
918         * test/test-syntax.lisp: Don't expect TYPE in the SQL-OUTPUT
919         of SQL-IDENT-ATTRIBUTE.
920         * test/test-oodml.lisp: Enable OO loop iteration test,
921         modify it so it doesn't depend on boolean where.
922         
923 4 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
924         * Version 2.10.9
925         * sql/objects.lisp: added derived type specifier for universal time. 
926         * sql/package.lisp: added #:universal-time to clsql-sys exports. 
927         * tests/test-oodml.lisp: added test for translation of boolean slots 
928         in SELECT with object queries. 
929         
930 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
931         * db-odbc/odbc-api.lisp: Fix changing nil to "NIL" 
932         for odbc/postgresql backend.
933         * db-odbc/odbc-sql.lisp: Fix ATTRIBUTE-TYPE so that
934         it can handle NIL values from the ODBC driver
935         * tests/benchmarks.lisp: New file with initial
936         benchmark suite
937         * sql/relations.lisp: fix to add subclassing support,
938         minor optimizations [Edi Weitz]
939         
940 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
941         * Version 2.10.8        
942         * base/conditions.lisp: Add *backend-warning-behavior*
943         special variable.
944         * db-postgresql-socket/postgresql-socket-sql.lisp:
945         Honor value of *backend-warning-behavior*
946         * tests/test-fdml.lisp: Remove test of raw boolean value
947         since different backends handle this differently. Add
948         test for :column attribute.
949         * tests/test-oodml.lisp: Add tests for boolean slot value
950         and for :void-value attribute
951         * tests/test-init.lisp: Use *backend-warning-behavior*
952         to suppress warnings from postgresql about implicitly
953         creating primary key in tables. Add new address table.
954         
955 3 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
956         * Version 2.10.7
957         * db-odbc/odbc-dbi.lisp: Convert TINYINT to integers when
958         result-types is :auto
959         * sql/objects.lisp: Properly handled writing/reading Boolean
960         values from SQL database when retrieving objects.
961         * test/test-fdml.lisp: Add another test for boolean results
962         * test/utils.lisp: Fix incorrect declaration
963         
964 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
965         * Version 2.10.6
966         * sql/generics.lisp: add generic function for SELECT. 
967         * sql/objects.lisp: make SELECT a method specialisation. 
968         * sql/classes.lisp: MAKE-QUERY now calls SELECT if the selections 
969         referred to are View Classes. 
970         * base/basic-sql.lisp: in DO-QUERY and MAP-QUERY, if the 
971         query-expression arg evaluates to a list, then we have an object 
972         query. 
973         * tests/test-oodml.lisp: add tests for DO-QUERY and MAP-QUERY with 
974         object queries. 
975         * TODO: remove items done and add a todo for SELECT. 
976         * sql/objects.lisp: SELECT takes a :field-names arg to pass on to 
977         QUERY. 
978         * sql/sql.lisp: add :field-names arg to QUERY. 
979         * tests/test-fdml.lisp: minor rework to use :field-names arg to 
980         SELECT. 
981
982 2 May 2004 Marcus Pearce (m.t.pearce@city.ac.uk)
983         * sql/objects.lisp: fix bug in FIND-ALL when SELECT called with 2 
984         or more View Classes. 
985         * sql/objects.lisp: make the :flatp argument to SELECT work with 
986         object queries. 
987         * sql/objects.lisp: make SELECT accept a :result-types argument 
988         (defaults to :auto) which is passed on to QUERY.  
989         * sql/objects.lisp: SELECT returns field-names as a second value. 
990         * tests/test-ooddl.lisp: add flatp arg to SELECT calls as appropriate. 
991         * tests/test-fdml.lisp: add flatp/result-types arguments to calls 
992         to SELECT and take only first value as appropriate.
993         * tests/test-fdml.lisp: add two new tests for query result coercion 
994         and the field-names returned as a second value from SELECT. 
995         * tests/test-oodml.lisp: add flatp arg to SELECT calls as appropriate. 
996         
997 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
998         * Version 2.10.6-pre1
999         * sql/metaclasses.lisp: Add void-value slot
1000         * doc/csql.xml: Update def-view-class documentation
1001         * test/test-init.lisp: Change old :db-type to :db-kind.
1002         Remove old :nulls-ok attributes.
1003         * sql/objects.lisp: Add new universal-time and bigint
1004         types. Optimize reading of integers using parse-integer
1005         rather than read-from-string.
1006         * */*.lisp: Merge clsql-base-sys and clsql-base packages
1007         into clsql-base package
1008         * classic/sql.lisp: Move large object support into base, leaving
1009         classic without any functionality that is provided in the clsql
1010         system.
1011         * classic/package.lisp: Rename clsql-classic-sys package to
1012         its former nickname of clsql-classic
1013         
1014 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1015         * Version 2.10.5: SQLite backend now passes all result-types tests
1016         * clsql-sqlite.asd: Depend on clsql-uffi system
1017         * db-sqlite/sqlite-sql.lisp: Use clsql-uffi:convert-raw-field
1018         for efficiency and code reuse. 
1019         * db-sqlite/sqlite-api-uffi.lisp: Change (* :char) to (* :unsigned-char)
1020         for better cross-implementation compatibility.
1021
1022 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1023         * Version 2.10.4
1024         * sql/tables.lisp: Fix typo in CACHE-TABLE-QUERIES
1025         [Marcus Pearce]
1026         * db-postgresql/postgresql-sql.lisp: Fix foreign-string vs. cstring
1027         bug on SBCL in result-field-names function as reported by Marcus Pearce
1028         * db-sqlite/sqlite-sql.lisp: Fix  in database-store-next-row
1029         manifest in SBCL testing
1030         
1031 1 May 2004 Kevin Rosenberg (kevin@rosenberg.net)
1032         * Version 2.10.3
1033         * sql/database.lisp: Conform more to CommonSQL output
1034         for STATUS command [Marcus Pearce]
1035         * sql/sqlite-sql.lisp: Rework to use result-types
1036         * sql/sqlite-api-clisp.lisp: Add compatibility layer
1037         with sqlite-api-uffi.lisp so that sqlite-sql.lisp can
1038         be cleaned up of most clisp reader conditionals
1039         * sql/test-init.lisp: Now run field type tests on sqlite
1040         backend
1041         
1042 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1043         * Version 2.10.2
1044         * base/basic-sql.lisp: Set default value of :result-types 
1045         to :auto for more CommonSQL conformance. 
1046         * test/test-fdml.lisp: Add tests for numeric value of fields
1047         
1048
1049 30 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1050         * Version 2.10.1: New API function: CACHE-TABLE-QUERIES.
1051         * base/basic-sql.lisp, db-*/*-sql.lisp: More CommonSQL conformance.
1052         Return field names as second value for QUERY. This can be overridden
1053         for efficiency with the new keyword :FIELD-NAMES set to NIL
1054         in the QUERY invocation.
1055         * test/test-fdml.lisp: Add tests for new field-name feature
1056         * sql/metaclass.lisp: Remove old Lispworks cruft
1057         and replace it with invocation of new code in kmr-mop.lisp
1058         which actually works with Lispworks 4.2
1059         * doc/ref_clsql.xml: Document new :FIELD-NAMES keyword to
1060         QUERY function
1061         * base/db-interface.lisp: Document the multiple values
1062         returned by DATABASE-ATTRIBUTE-TYPE so matches the
1063         undocumented CommonSQL behavior. 
1064         * sql/table.lisp: Add *CACHE-TABLE-QUERIES-DEFAULT* and
1065         *DEFAULT-UPDATE-OBJECTS-MAX-LEN* variables and export them.
1066         LIST-ATTRIBUTE-TYPES now conforms to CommonSQL spec.
1067         Implement CACHE-TABLE-QUERIES.
1068         * db-odbc/odbc-sql.lisp: Fix attribute-type function
1069         * test/test-fddl.lisp: Add tests for attribute type     
1070         * db-mysql/mysql-sql.lisp: Mild optimization in accessing
1071         field structures.
1072         * base/classes.lisp: Add attribute-cache slot to database clas
1073         * base/initialize.lisp: initialize-database-type now automatically
1074         loads database-type backend as needed.
1075         * base/test-init.lisp: Utilize new initialize-database-type functionality.
1076         * TODO: remove items done
1077         
1078 30 Apr 2004 Marcus Pearce (m.t.pearce@city.ac.uk) 
1079         * Version 2.9.6
1080         * sql/objects.lisp: remove create/drop-sequence-from-class. 
1081         * sql/objects.lisp: add INSTANCE-REFRESHED generic function. 
1082         * sql/objects.lisp: improved CommonSQL compatibility for
1083         UPDATE-RECORD-FROM-SLOT, UPDATE-RECORD-FROM-SLOTS,
1084         UPDATE-RECORDS-FROM-INSTANCE and DELETE-INSTANCE-RECORDS. 
1085         * sql/generics.lisp: move generics from objects.lisp to here. 
1086         
1087 29 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1088         * Version 2.9.6-pre1
1089         * db-mysql/mysql-client-info.lisp: Add client version 4.1
1090         detection
1091         * sql/sql.lisp: Make *default-database* the default for
1092         TRUNCATE-DATABASE
1093         
1094 28 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1095         * Version 2.9.5
1096         * db-mysql/mysql-sql.lisp: Fix bug in transaction capability
1097         detection
1098         * sql/objects.lisp: Commit patch from Slawek Zak to allow specifying 
1099         :metaclass in DEF-VIEW-CLASS invocation. This allows defining classes 
1100         on a metaclass specialized from standard-db-class.
1101
1102         
1103 24 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1104         * Version 2.9.4: Multiple changes to support Allegro's "modern"
1105         lisp which uses a lowercase reader and has case-sensitive symbols
1106         * sql/classes.lisp: Fix make-load-form bug for sql-ident-table
1107         exposed by case-sensitive mlisp. 
1108
1109 22 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1110         * Version 2.9.3: All tests now pass on all platforms!
1111         * LATEST-TEST-RESULTS: New file with summary of test results
1112         * sql/generics.lisp: New file for generic function definitions.
1113         * test/test-init.lisp: Display names of skipped tests.
1114         Use unwind-protect to ensure disconnect
1115         * sql/objects.lisp: Change database-type to database-underlying-type
1116         so that actual database engine is properly identified
1117         * db-odbc/odbc-api.lisp: Have default *time-conversion-function*
1118         return an ISO timestring for compatibility with other drivers.
1119         Workaround bug in MyODBC for LIST-TABLE-INDEXES
1120         * test/test-fdml.lisp: Accomodate that odbc-postgresql driver
1121         returns floating-point values for floor and truncate operations 
1122         * db-aodbc/aodbc-sql.lisp: Implement DATABASE-LIST-VIEWS
1123         * tests/test-basic.lisp: Port to regression tester
1124         * test/test-init.lisp: Output to *report-stream*
1125         * docs/appendix.xml: Document ODBC and SQLite backends.
1126         * sql/classes.lisp: Make output-sql require a database parameter.
1127         This allows SQL generation to have the proper case to support
1128         the differences in case handling between CommonSQL API,
1129         Postgresql, MySQL, Oracle.
1130         
1131 21 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1132         * Version 2.9.2: Improvments in database capability introspection
1133         and querying. Support transactions in MySQL where available.
1134         All tests now pass on MySQL and SQLite in addition to postgresql
1135         and postgresql-socket. ODBC fails only with OODDL/TIME/1 and OODDL/TIME/2.
1136         * db-odbc/odbc-sql.lisp: Add DATABASE-LIST-VIEWS. Better support
1137         DATABASE-LIST-SEQUENCES.
1138         * clsql-uffi.asd, clsql-mysql.asd: Improve shared library loading
1139         * Database_capabilies: add HAS-VIEWS, HAS-CREATE/DESTROY-DB,
1140         HAS-BOOLEAN-WHERE, TRANSACTION-CAPABLE
1141         * tests/*.lisp: Check database capabilities and remove tests which
1142         the database backend does not support
1143         * sql/table.lisp: Add :TRANSACTIONS keyword to create table which
1144         controls whether InnoDB tables will be created when supported on
1145         the underlying MySQL server.
1146         
1147 20 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1148         * Version 2.9.0: New API function: LIST-TABLE-INDEXES,
1149         supported by all database backends (except AODBC since
1150         AODBC doesn't support index querying)
1151         * db-obdc/odbc-sql.lisp: Support DATABASE-LIST-INDEXES
1152         * db-odbc/odbc-api.lisp: Add %TABLE-STATISTICS function
1153         to support index queries
1154         * db-aodbc/aodbc-sql.lisp: Filter driver manager
1155         "information_schema" tables from LIST-TABLES
1156         * tests/test-basic.lisp: Remove table after testing
1157         * tests/test-fddl.lisp: Test LIST-TABLE-INDEXES
1158         * base/db-interface.lisp: Add DATABASE-UNDERLYING-TYPE
1159         which gets the underlying type of database -- required
1160         when dealing with ODBC databases and want to query
1161         database capabilities. Added DB-USE-COLUMN-ON-DROP-TABLES?
1162         as first database-backend specific feature. Is T on
1163         :mysql, NIL on other backends. Change DROP-TABLE to
1164         query this.
1165         
1166 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1167         * Version 2.8.2: Build changes for FreeBSD [Slawek Zak]
1168
1169 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1170         * Version 2.8.1
1171         * db-odbc/odbc-sql.lisp: Add DATABASE-LIST function 
1172         * db-odbc/odbc-dbi.lisp: Add LIST-ALL-DATA-SOURCES function 
1173
1174 19 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1175         * Version 2.8.0: New API function: LIST-DATABASES
1176         * base/utils.lisp: Fix command-output on CMUCL/SBCL
1177         * db-*/*-sql.lisp: Add new database-list function
1178         * base/database.lisp: Add new LIST-DATABASES command
1179         
1180 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1181         * Version 2.7.9
1182         * db-sqlite/sqlite-sql.lisp: Fix sequence functions.
1183         * db-sqlite/sqlite-api-uffi.lisp: Print error string
1184         correctly.
1185         
1186 18 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1187         * Version 2.7.7
1188         * doc/csql.xml, examples/clsql-tutorial.lisp: Patch for db-kind
1189         from Eduardo Munoz.
1190         
1191 17 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1192         * Version 2.7.6
1193         * base/objects.lisp, base/classes.lisp: Patch
1194         for db-kind from Eduardo Munoz
1195         
1196 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1197         * Version 2.7.5
1198         * base/basic-sql.lisp: Fix FLATP in QUERY
1199
1200 16 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1201         * Version 2.7.3: Implement RECONNECT
1202
1203 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1204         * Version 2.7.2: Fix ODBC on Lispworks Windows
1205
1206 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1207         * Version 2.7.1: Fix for new ODBC backend.
1208         clsql-odbc now works on SBCL, CMUCL, OpenMCL
1209         in addition to AllegroCL and Lispworks.
1210
1211 15 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1212         * Version 2.7.0: New backend: ODBC. Tests as
1213         well as AODBC backend on Allegro,Lispworks.
1214         SBCL and CMUCL don't work quite yet.  Requires UFFI v1.4.11+
1215         * db-odbc/*.lisp: Add ODBC3 function SQLSetEnvAttr
1216         to explicitly set ODBC2 support. Add BIGINT support.
1217         Add result-types support. Added SQLTables.
1218         Fix array type in fetch-all-rows. Make width
1219         changable by database or query.
1220         * base/utils.lisp: Add process functions
1221         * base/package.lisp: Export utils to CLSQL-BASE-SYS
1222         * db-aodbc: Implement sequence functions,
1223         database-list-tables, database-list-attributes
1224         * tests/utils.lisp: Add support for ODBC backend,
1225         rework READ-SPECS to use +all-db-types+
1226         * db-mysql/mysql-sql.lisp: Use WITHOUT-INTERRUPTS
1227         for SEQUENCE-NEXT
1228         
1229 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1230         * Version 2.6.13. Requires UFFI version 1.4.9
1231         * db-odbc/*.lisp: Further porting.
1232         Pre-alpha code! But, basic query is now working.
1233
1234 13 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1235         * Version 2.6.12
1236         * base/transactions.lisp: Add quote for macro
1237         expansion of WITH-TRANSACTIONS [Time Howe]
1238         * db-sqlite/sqlite-sql.lisp: Support memory database
1239         in database-probe [Ng Pheng Siong]
1240         * db-odbc/*.lisp: Initial port to UFFI of SQL-ODBC.
1241         The DBI layer is not finished.
1242         
1243 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1244         * Version 2.6.11
1245         * sql/objects.lisp: add :root-class functionality for
1246         list-classes and add duration type support [Marcus Pearce]
1247         * db-odbc: Add mid-level [DBI] layer
1248
1249 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1250         * Version 2.6.10
1251         * db-aodbc: Add methods for generic functions, some are
1252         not yet implemented.
1253         * clsql-odbc.asd, db-odbc/*.lisp: Initial start of ODBC
1254         support
1255
1256 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1257         * Version 2.6.9
1258         * base/package.lisp: Add missing symbols [Marcus Pearce]
1259
1260 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1261         * Version 2.6.8
1262         * test/test-fddl.lisp: Cleanup fix [Marcus Pearce]
1263         * utils/time.lisp: Multiple fixes [Marcus Pearce]
1264         * sql/sql.lisp: Fix for truncate-database [Marcus Pearce]
1265         
1266 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1267         * Version 2.6.7
1268         * sql/*.lisp: Remove schema versioning cruft
1269         [Marcus Pearce]
1270         * Makefile: Add classic subdirectory
1271         
1272 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1273         * Version 2.6.6
1274         * sql/sql.lisp: Fix TRUNCATE command, bug reported
1275         by Marcus Pearce
1276         * sql/sql.lisp: Remove EXPLAIN function. Postgresql/Oracle
1277         specific and easy for an application to directly support.
1278         Idea from Marcus Pearce.
1279         * base/basic-sql.lisp: Remove DESCRIBE-TABLE top-level 
1280         API as duplicates LIST-ATTRIBUTE-TYPES [Marcus Pearce].
1281         Keep low-level interface for future optimization
1282         supporting LIST-ATTRIBUTE-TYPES command.
1283         * Makefile: Add to db-sqlite and test directories.
1284         Include them in top-level Makefile
1285         
1286 12 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1287         * Version 2.6.5
1288         * sql/relations.lisp: Add missing file
1289         * utils/time.lisp: Fixes/extensions [Marcus Pearce]
1290         * test/test-time.lips: New file [Marcus Pearce]
1291         
1292 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1293         * Version 2.6.4
1294         * test/test-init.lisp: Properly handle object
1295         creation. Close database after use.
1296         * sql/sql.lisp: Make DESCRIBE-TABLE a generic
1297         function so can have methods specialized on
1298         table being a string or an sql-table object.
1299         * base/pool.lisp: Really fix CMUCL locking
1300         
1301 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1302         * Version 2.6.3
1303         * test/test-init.lisp: Signal correctly
1304         if any errors occurred in any test suite
1305         * base/loop-extensions.lisp: Fix error
1306         introduced for Lispworks
1307         * base/pool.lisp: Fix locking for CMUCL
1308         * base/objects.lisp: Remove schema-version cruft
1309         
1310 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1311         * Version 2.6.2: New CLSQL API functions:
1312         DESCRIBE-TABLE AND TRUNCATE-DATABASE
1313         Currently, this are only supported on :postgresql
1314         and :postgresql-socket
1315         * base/database.lisp: automatically load ASDF system
1316         in CONNECT if not already loaded
1317         * base/tests.lisp: disconnect database after testing 
1318         * base/*.lisp: Remove CLOSED-DATABASE type in favor
1319         of storing open/closed status in slot of database
1320         * base/pool.lisp: Support locks for CMUCL, OpenMCL, SBCL
1321         * db-postgresql/postgresql-sql.lisp: add DATABASE-RECONNECT,
1322         DATABASE-DESCRIBE-TABLE
1323         * db-sqlite/sqlite-sql.lisp: Add missing slots in database
1324         * base/conditions: Remove duplicate condition
1325         * db-*/*-sql.lisp: Fill new database slot DATABASE-TYPE
1326         * base/recording.lisp: Add new :QUERY type for recording
1327         
1328 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1329         * Version 2.6.1: documentation fixes, merged
1330         classic-tests into tests
1331
1332 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1333         * Version 2.6.0 released: New API functions
1334         CREATE-DATABASE, DESTORY-DATABASE, PROBE-DATABASE
1335         * doc/ref_clsql.xml: Document new functions
1336         * base/database.lisp: New API functions
1337         * base/conditions.lisp: Added CLSQL-ACCESS-ERROR
1338         * base/utils.lisp: Fix use of position-char.
1339         Add COMMAND-OUTPUT used by backends for running
1340         external programs. Fix parsing of SQL*NET-compatible
1341         connection-specs.
1342         * base/loop-extension.lisp: Simplify package use
1343         for Lispworks and Allegro
1344         * db-*/*-sql.lisp: Added DATABASE-CREATE,
1345         DATABASE-DESTORY, PROBE-DATABASE methods
1346         * tests/test-init.lisp, clasic-tests/tests.lisp:
1347         Use destroy-database and create-database to ensure 
1348         testing with empty database
1349         * tests/test-connection.lisp: Add tests for
1350         parsing of string connection-specs
1351         * examples/run-tests.sh: New file for running
1352         test suite on all installed CL implementations
1353         * examples/clsql-tutorial.lisp: moved from
1354         doc directory
1355         * examples/dot.clsql-tests.config: New file
1356         giving an example test configuration
1357         * test/README: Add notes about rtest/ptester
1358         downloads and link to sample test configuration file.
1359         
1360 10 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1361         * Version 2.5.1 released:
1362         * tests/*.lisp: Rework so tests are run
1363         on multiple backends automatically based
1364         on the contents of ~/.clsql-tests.config.
1365         Reuse helper functions from classic-tests.
1366         * base/database.lisp: Support connection-spec
1367         as string for CONNECT
1368         * classic-tests/tests.lisp: Automatically
1369         load database backends as needed. 
1370         
1371 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1372         * Version 2.5.0 released:
1373         All tests for CLSQL and CLSQL-CLASSIC pass
1374         on all platforms.
1375         * base/loop-extension.lisp: Add Lispworks
1376         loop-extension. Improve type specifying on
1377         other platforms.
1378         
1379 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1380         * Version 2.4.2 released:
1381         loop extension now supported on Allegro, all
1382         CLSQL-TESTS pass on Allegro.
1383         * sql/metaclasses.lisp: Some optimization
1384         of compute-slots, be selective when
1385         ordered-class-slots needs to be called
1386         instead of class-slots
1387         * TODO: add URL with documentation on
1388         extending Lispworks LOOP form
1389         
1390 09 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1391         * Version 2.4.1 released: CLSQL-TESt suite passes
1392         all tests for postgresql and CMUCL, SBCL, OpenMCL.
1393         Allegro and Lispworks pass all tests except for
1394         FDML/LOOP/1 since the loop extension have not yet
1395         been ported to those implementions.
1396         * sql/metaclasses.lisp: Added new slot to standard-db-class
1397         to hold user-specified type. OpenMCL adjustments to compensate
1398         for its type-predicate function. Since AllegroCL, Lispworks,
1399         and OpenMCL have different slot orders, added compute-slots
1400         and ordered-class-slots functions so their slot order matches
1401         SBCL/CMUCL.
1402
1403 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1404         * Version 2.4.0 released: All tests for clsql-classic now finish
1405         correctly on Allegro, Lispworks, CMUCL, SBCL, OpenMCL for
1406         mysql, postgresql, postgresql-sockets, and sqlite backends.
1407         * db-mysql/mysql-sql.lisp: Fix array dereferencing
1408         * classic-tests/tests.lisp: Fix package name of
1409         number-to-sql-string. 
1410         * clsql.asd/clsql-tests.asd: Add support for asdf:test-op
1411         * db-sqlite/sqlite-api-{uffi,sql}.lisp: Multiple UFFI fixes,
1412         now passes tests on all support UFFI platforms.
1413         * db-postgresql-socket/postgresql-socket-api.list: Ported to 
1414         SBCL and OpenMCL
1415         * multiple: Finish renaming of :types keyword to :result-types for
1416         greater CommonSQL compatibility, including documentation
1417         * sql/basic-cmds.lisp: Remove obsolete file
1418         
1419 08 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1420         * Version 2.3.3 released
1421         * Fixes for sequences on mysql and sqlite [Marcus Pearce]
1422         * Fixes for uffi sqlite backend [Aurelio Bignoli / Kevin Rosenberg]
1423         * Fix for schema table [Marcus Pearce]
1424         * Add loop extension support for SBCL and OpenMCL [Marcus Pearce]
1425         * Fixes to test suite [Marcus Pearce]
1426
1427 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1428         * db-*/*-sql.lisp: Ensure that expr in
1429         database-query-result-set is a string
1430         * Documentation integration
1431         
1432 06 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1433         * With for Marcus Pearce's excellent work, I've merged
1434         his clsql-usql port into clsql. The original clsql
1435         interface is available in the clsql-classic package.
1436
1437 02 Apr 2004 Kevin Rosenberg (kevin@rosenberg.net)
1438         * Integrate patch from Marcus Pearce <ek735@soi.city.ac.uk>
1439         adding further support for providing backend for UncommonSQL
1440
1441 10 Mar 2004 Kevin Rosenberg (kevin@rosenberg.net)
1442         * Integrate patch from Aurelio Bignoli for SQLite backend
1443
1444 11 Nov 2003 Kevin Rosenberg (kevin@rosenberg.net)
1445         * Converted documentation to XML format
1446         * Made package installable with asdf-install
1447
1448 23 Jul 2003 Kevin Rosenberg (kevin@rosenberg.net)
1449         * Add for-each-row macro
1450
1451 12 Dec 2002 Kevin Rosenberg (kevin@rosenberg.net)
1452         * uffi/clsql-uffi.lisp: return NIL for numeric fields that are NULL
1453         
1454 16 Oct 2002 Kevin Rosenberg (kevin@rosenberg.net)
1455         * Add support for SBCL, OpenMCL, and SCL
1456         * Add *load-truename* to search path for clsql's
1457         compiled libraries.
1458
1459 01 Sep 2002 Kevin Rosenberg (kevin@rosenberg.net)
1460         * Rework use of file types in .asd files
1461
1462 17 Aug 2002 Kevin Rosenberg (kevin@rosenberg.net)
1463         * Add .asd definition files for ASDF users
1464
1465 31 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1466         * Restructure directories for Common Lisp Controller v3 compatibility
1467
1468 25 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1469         * Also change case of logical host in loader files
1470         * Rework handling of logical pathnames
1471         
1472 05 Jul 2002 Kevin Rosenberg (kevin@rosenberg.net)
1473         * Change case of logical host
1474         
1475 14 May 2002 Kevin Rosenberg (kevin@rosenberg.net)
1476         * clsql-base.system: Added base package that can be used without
1477         high-level SQL commands. Used for adding support for UncommonSQL.
1478         * *.system: Reworked logical pathnames to be more consistent with
1479         Common Lisp Controller.
1480         * debian/*: Completed initial Debian support
1481         
1482 10 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1483         * sql/classes.cl:
1484         * sql/transactions.cl:
1485         Added transaction support. Functions/macros added:
1486         with-transaction, commit-transaction, rollback-transaction,
1487         add-transaction-commit-hook, add-transaction-rollback-hook
1488
1489 04 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1490         * sql/sql.cl:
1491         * sql/pool.cl:
1492         * sql/functional.cl:
1493         Added pool support in connect/disconnect and with-database.
1494         Removed with-db-from-pool as with-database can now works with the connections pool
1495
1496 01 May 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1497         * sql/sql.cl:
1498         * sql/pool.cl:
1499         * sql/classes.cl:
1500         * sql/package.cl:
1501         Completed connection pool.
1502         Added with-db-from-pool macro.
1503         
1504 27 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1505         * Multiple files:
1506         Added initial support for connection pool
1507         * sql/transactions.cl
1508         Took transaction code from UncommonSQL and integrated
1509         into CLSQL code. See file for disclaimer about why this
1510         was added.
1511
1512 23 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1513         * interfaces/postgresql/postgresql-sql.cl:
1514         Fix keyword typo in database-read-large-object
1515         * interfaces/mysql/mysql-loader.cl
1516         Fix loading on Win32
1517         * test-suite/tester-clsql.cl
1518         Fix type coercion of double-float
1519         * doc/*
1520         Added debian docbook catalog, made it the default
1521         
1522 19 Apr 2002 Marc Battyani (marc.battyani@fractalconcept.com)
1523         * interface/postgresql/postgresql-api.cl:
1524         * interface/postgresql/postgresql-sql.cl:
1525         * sql/sql.cl:
1526         * sql/db-interface.cl:
1527         Added large objects support for postgresql.
1528
1529 07 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1530         * src/postgresql-socket/postgresql-socket-api.cl:
1531         Fixed find-foreign-function call, eliminated crypt warning
1532         * Makefiles:
1533         Multiple improvements
1534         * sql/usql.cl:
1535         Moved functionality from low-level interfaces to this file
1536         via generic functions
1537         * test-suite/tester.cl:
1538         Added test with acl-compat-tester, moved others to old-tests
1539         directory.
1540         
1541 06 Apr 2002 Kevin Rosenberg (kevin@rosenberg.net)
1542         * src/usql.cl:
1543         Reinstated commented out sections
1544         * interfaces/postgresql/postgresql-loader.cl:
1545         * interfaces/mysql/mysql-loader.cl:
1546         Updated find-forieign-library support.
1547         * interfaces/postgresql-socket/postgresql-socket-package.cl:
1548         Fixed require form for Lispworks (Thanks Marc Battyani!)
1549         * interfaces/postgresql-socket/postgresql-socket-api.cl:
1550         Fixed eval of def-function for crypt library.
1551                 
1552 31 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1553         * Added interface to support USQL high-level rouines
1554         
1555 29 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1556         * Separated db-interface and conditions from sql/sql.cl
1557         * Improved foreign library loading testing
1558         * interfaces/postgresql/postgresql-api.cl
1559         Added PQisBusy function
1560         * interfaces/clsql-uffi/clsql-uffi.cl
1561         Fixed sign error for 64-bit processing
1562         
1563 27 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1564         * interfaces/postgresql-socket/postgresql-socket-api.cl:
1565         Fixes to read-double-from-socket. Added 64-bit integer support.
1566         * test-suite/xptest-clsql.cl
1567         Added testint for 64-bit integers
1568         * Additons to installation docs
1569         
1570 26 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1571         * interfaces/postgresql-socket/postgresql-socket-api.cl:
1572         Implemented direct socket reading for field type :double
1573         * Added usage information for :types to documentation
1574         * interfaces/mysql/mysql-sql.cl: Fixed type specifiers in atoi,
1575         atol, atof calls
1576         * interfaces/clsql-uffi: Created new directory. Split common
1577         interface routines that use UFFI into this package. Required
1578         especially to support direct reading of 64-bit integers into
1579         bignums and bypassing temporary strings.
1580         * test-clsql.cl: Updated to test postgresql-socket's
1581         read-double-from-socket function.
1582         * test-suite/xptest-clsql.cl
1583         Started work on test suite
1584
1585 25 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1586         * interfaces/mysql/mysql-api.cl: Added mysql-fetch-fields,
1587         mysql-fetch-field-direct Got :auto types working
1588         * interfaces/postgresql/postgresql-api.cl
1589         * interfaces/postgresql-socket/postgresql-socket-api.cl
1590         Added pgsql-field-types enum. Got :auto types working.
1591         * multiple-files
1592         Renamed :field-types to :types.
1593         
1594 24 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1595         * Added field-types parameter to query, database-query,
1596         database-query-result-set, map-query. Haven't added code
1597         to utilize field types, yet.
1598         * Changed postgresql-socket result set from cons to a structure
1599         * Updated test-clsql.cl to use automated testing with a config
1600         file
1601         * Changed return types of field accessors from cstring to
1602         (* :unsigned-char).  This prepares for being able to use specified
1603         type conversions when taking field data into lisp.
1604         * Added field-type processing for most interfaces. Not done yet.
1605         
1606 23 Mar 2002 Kevin Rosenberg (kevin@rosenberg.net)
1607         * doc/ref.sgml: Updated MAP-QUERY example to use
1608         *read-default-float-format* (John Foderaro)
1609         * Extensive work to foreign library loaders and .system files to
1610         check for successful loading of foreign libraries.
1611         * Modified test-clsql.cl to allow more modularity and
1612         automated testing in future release.
1613         * mysql/mysql-sql.lisp: Added field types
1614         
1615 01 Jan 2002 Kevin Rosenberg (kevin@rosenberg.net)
1616         * mysql/mysql-sql.lisp:
1617         - Added support for Allegro CL and Lispworks using UFFI layer
1618         - Changed database-connect to use mysql-real-connect. This way,
1619           can avoid using double (unwind-protect)
1620         - Changed database-connect to have MySQL library allocate space
1621           for MYSQL structure. This will make the code more robust in
1622           the event that MySQL library changes the size of the mysql-mysql
1623           structure.
1624
1625