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