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