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