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