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