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