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