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