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