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