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