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