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