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