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